From 48dadf344671eef0828622211dae783050614d1d Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期四, 20 十一月 2025 12:23:05 +0800
Subject: [PATCH] 0312 防范主界面黑屏问题

---
 Main/System/Main/MainWin.cs |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/Main/System/Main/MainWin.cs b/Main/System/Main/MainWin.cs
index 25c339a..cef589f 100644
--- a/Main/System/Main/MainWin.cs
+++ b/Main/System/Main/MainWin.cs
@@ -447,15 +447,17 @@
     {
         if (functionOrder != -1)
         {
-            Debug.Log("RestoreSubUI functionOrder " + functionOrder);
-            return;
+            if (currentSubUI != null && currentSubUI.IsActive())
+            {
+                // RestoreFuncBtn 閫犳垚
+                return;
+            }
         }
         if (lastWinOrder == -1)
         {
             lastWinOrder = 0;
         }
 
-        Debug.Log("RestoreSubUI lastWinOrder " + lastWinOrder);
         OnTabButtonClicked(lastWinOrder);
     }
 

--
Gitblit v1.8.0