关闭时移除任务栏

Fix #278
Fix #276
This commit is contained in:
ZouJin 2023-10-22 14:23:43 +08:00
parent 0231c41f46
commit 5ed82fce22

View File

@ -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();
}
}