add silent detection - don't send to queue if enable

This commit is contained in:
Alex Bezdieniezhnykh
2025-04-27 21:43:45 +03:00
parent 5ff4ee58b9
commit 47aa8b862b
9 changed files with 18 additions and 12 deletions
+6 -2
View File
@@ -147,7 +147,11 @@ public partial class App
EventManager.RegisterClassHandler(typeof(UIElement), UIElement.KeyDownEvent, new RoutedEventHandler(GlobalClick));
_host.Services.GetRequiredService<MainSuite>().Show();
};
login.Closed += (sender, args) =>
{
if (!login.MainSuiteOpened)
_inferenceClient.Stop();
};
login.ShowDialog();
}
@@ -246,4 +250,4 @@ public partial class App
base.OnExit(e);
await _host.StopAsync();
}
}
}
+3 -3
View File
@@ -119,9 +119,6 @@ public partial class MainSuite
if (_openedWindows.Any())
return;
_inferenceClient.Stop();
_gpsMatcherClient.Stop();
Close();
};
window.Show();
@@ -145,6 +142,9 @@ public partial class MainSuite
_dbFactory.SaveToDisk();
foreach (var window in _openedWindows)
window.Value.Close();
_inferenceClient.Stop();
_gpsMatcherClient.Stop();
Application.Current.Shutdown();
}
+2 -1
View File
@@ -25,6 +25,7 @@
"UIConfig": {
"LeftPanelWidth": 220.0,
"RightPanelWidth": 230.0,
"GenerateAnnotatedImage": true
"GenerateAnnotatedImage": true,
"SilentDetection": true
}
}
+2 -1
View File
@@ -25,6 +25,7 @@
"UIConfig": {
"LeftPanelWidth": 170.0,
"RightPanelWidth": 120.0,
"GenerateAnnotatedImage": true
"GenerateAnnotatedImage": true,
"SilentDetection": false
}
}