diff --git a/UI/App.xaml.cs b/UI/App.xaml.cs index d62b55a8d2f41913a66031bd6d6892f963dc9ddc..d4cee82775281c41389b82e062904aac365e6c8f 100644 --- a/UI/App.xaml.cs +++ b/UI/App.xaml.cs @@ -47,6 +47,11 @@ namespace UI serviceProvider = serviceCollection.BuildServiceProvider(); } + protected override void OnExit(ExitEventArgs e) + { + base.OnExit(e); + statusBarIcon.Visible = false; + } private void App_DispatcherUnhandledException(object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e) { // 记录崩溃错误