mirror of
https://github.com/LorisYounger/VPet.git
synced 2024-08-30 18:42:36 +00:00
优化关闭操作
This commit is contained in:
@ -414,7 +414,13 @@ namespace VPet_Simulator.Windows
|
||||
winSetting?.Close();
|
||||
winBetterBuy?.Close();
|
||||
winWorkMenu?.Close();
|
||||
winMutiPlayer?.Close();
|
||||
if (winMutiPlayer != null)
|
||||
{
|
||||
winMutiPlayer.lb.Leave();
|
||||
winMutiPlayer.lb = default;
|
||||
winMutiPlayer.Close();
|
||||
}
|
||||
|
||||
if (IsSteamUser)
|
||||
SteamClient.Shutdown();//关掉和Steam的连线
|
||||
if (notifyIcon != null)
|
||||
@ -457,6 +463,12 @@ namespace VPet_Simulator.Windows
|
||||
winSetting?.Close();
|
||||
winBetterBuy?.Close();
|
||||
winWorkMenu?.Close();
|
||||
if (winMutiPlayer != null)
|
||||
{
|
||||
winMutiPlayer.lb.Leave();
|
||||
winMutiPlayer.lb = default;
|
||||
winMutiPlayer.Close();
|
||||
}
|
||||
App.MainWindows.Remove(this);
|
||||
if (notifyIcon != null)
|
||||
{
|
||||
|
Reference in New Issue
Block a user