From 5ed82fce228e4c96f5b58191c93c395ac42326c9 Mon Sep 17 00:00:00 2001 From: ZouJin Date: Sun, 22 Oct 2023 14:23:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=B3=E9=97=AD=E6=97=B6=E7=A7=BB=E9=99=A4?= =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E6=A0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix #278 Fix #276 --- VPet-Simulator.Windows/MainWindow.xaml.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/VPet-Simulator.Windows/MainWindow.xaml.cs b/VPet-Simulator.Windows/MainWindow.xaml.cs index d325d66..b7950a3 100644 --- a/VPet-Simulator.Windows/MainWindow.xaml.cs +++ b/VPet-Simulator.Windows/MainWindow.xaml.cs @@ -282,6 +282,12 @@ namespace VPet_Simulator.Windows winSetting?.Close(); winBetterBuy?.Close(); App.MainWindows.Remove(this); + if (notifyIcon != null) + { + notifyIcon.Visible = false; + notifyIcon.Dispose(); + } + notifyIcon?.Dispose(); } }