From 5c265d3c112e7309dc3421accf5993f66b8e225a Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期四, 05 十二月 2024 18:05:18 +0800
Subject: [PATCH] 0312 开服七天排行榜支持分页查询显示;界面打开关闭如果报错增加后台汇报

---
 System/WindowBase/WindowCenter.cs |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/System/WindowBase/WindowCenter.cs b/System/WindowBase/WindowCenter.cs
index b0404ce..5ae39cd 100644
--- a/System/WindowBase/WindowCenter.cs
+++ b/System/WindowBase/WindowCenter.cs
@@ -496,6 +496,9 @@
 
         internal void NotifyBeforeOpen<T>(T window) where T : Window
         {
+            if (window is not MainInterfaceWin)
+                CalcMainInterfaceWin();
+
             if (windowBeforeOpenEvent != null)
             {
                 windowBeforeOpenEvent(window);
@@ -504,7 +507,6 @@
 
         internal void NotifyAfterOpen<T>(T window) where T : Window
         {
-            CalcMainInterfaceWin();
             if (windowAfterOpenEvent != null)
             {
                 windowAfterOpenEvent(window);
@@ -529,7 +531,8 @@
 
         internal void JumpNotifyAfterClose<T>(T window) where T : Window
         {
-            CalcMainInterfaceWin();
+            if (window is not MainInterfaceWin)
+                CalcMainInterfaceWin();
             if (jumpWindowCloseEvent != null)
             {
                 jumpWindowCloseEvent(window);

--
Gitblit v1.8.0