mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 18:56:31 +00:00
add silent detection - don't send to queue if enable
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user