mirror of
https://github.com/LorisYounger/VPet.git
synced 2024-08-30 18:42:36 +00:00
修复多开时退出任意桌宠导致全部关闭的bug
This commit is contained in:
@ -378,14 +378,14 @@ namespace VPet_Simulator.Windows
|
||||
Exit();
|
||||
}
|
||||
private void Exit()
|
||||
{
|
||||
Task.Run(() =>
|
||||
{
|
||||
Thread.Sleep(10000);//等待10秒不退出强退
|
||||
Environment.Exit(0);
|
||||
});
|
||||
{
|
||||
if (App.MainWindows.Count <= 1)
|
||||
{
|
||||
Task.Run(() =>
|
||||
{
|
||||
Thread.Sleep(10000);//等待10秒不退出强退
|
||||
Environment.Exit(0);
|
||||
});
|
||||
try
|
||||
{
|
||||
if (Core != null && Core.Graph != null)
|
||||
|
Reference in New Issue
Block a user