From 19fbff14bfe1982cc88583fd8595dd0bc8a6c245 Mon Sep 17 00:00:00 2001 From: noberumotto Date: Tue, 28 Dec 2021 07:03:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=A8=8B=E5=BA=8F=E9=80=80?= =?UTF-8?q?=E5=87=BA=E6=97=B6=E7=8A=B6=E6=80=81=E6=A0=8F=E5=9B=BE=E6=A0=87?= =?UTF-8?q?=E6=B6=88=E9=99=A4=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- UI/App.xaml.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/UI/App.xaml.cs b/UI/App.xaml.cs index d62b55a..d4cee82 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) { // 记录崩溃错误 -- GitLab