mirror of
https://github.com/muskit/MercuryConverter.git
synced 2026-06-02 20:24:26 -07:00
fix file scan dialog unnecessarily staying open
This commit is contained in:
@@ -18,7 +18,6 @@ public partial class DataScanning : UserControl
|
|||||||
public DataScanning(bool requiresUser = true)
|
public DataScanning(bool requiresUser = true)
|
||||||
{
|
{
|
||||||
this.requiresUser = requiresUser;
|
this.requiresUser = requiresUser;
|
||||||
Console.WriteLine($"DataScan should stay open: {requiresUser}");
|
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
|
||||||
if (!Design.IsDesignMode)
|
if (!Design.IsDesignMode)
|
||||||
@@ -114,7 +113,6 @@ public partial class DataScanning : UserControl
|
|||||||
/// <param name="error"></param>
|
/// <param name="error"></param>
|
||||||
private void UISetError(string? error = null)
|
private void UISetError(string? error = null)
|
||||||
{
|
{
|
||||||
requiresUser = true;
|
|
||||||
Dispatcher.UIThread.Post(() =>
|
Dispatcher.UIThread.Post(() =>
|
||||||
{
|
{
|
||||||
if (error == null)
|
if (error == null)
|
||||||
@@ -123,6 +121,7 @@ public partial class DataScanning : UserControl
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
requiresUser = true;
|
||||||
ScanError.IsVisible = true;
|
ScanError.IsVisible = true;
|
||||||
ErrorText.Text = error;
|
ErrorText.Text = error;
|
||||||
ScanPath.IsVisible = ScanPath.Text == "" ? false : true;
|
ScanPath.IsVisible = ScanPath.Text == "" ? false : true;
|
||||||
|
|||||||
Reference in New Issue
Block a user