From 86c08ebc16cfd91452c9d868b9491316adc422b2 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期一, 09 十二月 2024 19:49:31 +0800
Subject: [PATCH] 0312 优化主界面打开

---
 System/WindowBase/WindowCenter.cs |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/System/WindowBase/WindowCenter.cs b/System/WindowBase/WindowCenter.cs
index e126886..13f11f6 100644
--- a/System/WindowBase/WindowCenter.cs
+++ b/System/WindowBase/WindowCenter.cs
@@ -533,6 +533,7 @@
         {
             //if (ConfigInitiator.done && window is not MainInterfaceWin && !WindowJumpMgr.Instance.IsJumpState)
             //    CalcMainInterfaceWin();
+            checkMainWin = true;
             if (jumpWindowCloseEvent != null)
             {
                 jumpWindowCloseEvent(window);
@@ -586,6 +587,12 @@
         {
             var checkMainWinImmedidately = closeCommands.Count + openCommands.Count > 0;
 
+            if (checkMainWin)
+            {
+                checkMainWinImmedidately = true;
+                checkMainWin = false;
+            }
+
             while (closeCommands.Count > 0)
             {
                 var command = closeCommands[0];
@@ -629,13 +636,15 @@
             }
 
             checkTimer += checkMainWinImmedidately ? 1f : Time.deltaTime;
-            if (checkTimer > 0.25f)
+            if (checkTimer > 0.2f)
             {
                 checkTimer = 0f;
                 CalcMainInterfaceWin();
             }
         }
 
+        bool checkMainWin = false;
+
         //涓荤晫闈㈢殑寮�鍏抽粯璁ゅ鐞�
         public void CalcMainInterfaceWin()
         {

--
Gitblit v1.8.0