From 39001a600fcae2bcf27c225df8752d75fb92fef4 Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期五, 31 十月 2025 11:18:26 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.1.20:10010/r/Project_SG_scripts

---
 Main/System/Guild/GuildJoinWin.cs |   10 +++-------
 1 files changed, 3 insertions(+), 7 deletions(-)

diff --git a/Main/System/Guild/GuildJoinWin.cs b/Main/System/Guild/GuildJoinWin.cs
index 10aeb88..1d1be7d 100644
--- a/Main/System/Guild/GuildJoinWin.cs
+++ b/Main/System/Guild/GuildJoinWin.cs
@@ -42,19 +42,15 @@
         guildListScroller.OnRefreshCell -= RefreshCell;
         PlayerDatas.Instance.fairyData.OnRefreshFairyInfo -= OnRefreshFairyInfo;
 
-        var win = UIManager.Instance.GetUI<MainWin>();
-        if (win)
-            win.RestoreFuncBtn();
-        
+        UIManager.Instance.GetUI<MainWin>()?.RestoreFuncBtn();
+
     }
 
     void OnRefreshFairyInfo()
     {
         //褰撳墠鐣岄潰涓嬫湁鍒锋柊鑷鐨勫叕浼氭暟鎹紝璇存槑涓�瀹氭槸鍔犲叆浜嗗叕浼氾紝闇�涓诲姩璺宠浆鍒板叕浼氱晫闈�
         CloseWindow();
-        var win = UIManager.Instance.GetUI<MainWin>();
-        if (win)
-            win.ClickFunc(4);
+        UIManager.Instance.GetUI<MainWin>()?.ClickFunc(4);
     }
 
     void Display()

--
Gitblit v1.8.0