guodong 3 роки тому
батько
коміт
55cb908fe6

+ 2 - 1
GameClient/Assets/Game/HotUpdate/Views/Login/LoginView.cs

@@ -102,7 +102,6 @@ namespace GFGGame
                 {
                 {
                     OnClickBtnStart();
                     OnClickBtnStart();
                 }
                 }
-                _ui.m_btnLogout.visible = GameController.CheckLoginCache(false);
                 if (!_ui.m_btnLogout.visible)
                 if (!_ui.m_btnLogout.visible)
                 {
                 {
                     ViewManager.Show<LoginInputView>();
                     ViewManager.Show<LoginInputView>();
@@ -140,6 +139,8 @@ namespace GFGGame
 
 
         private void UpdateServer(ServerInfo info)
         private void UpdateServer(ServerInfo info)
         {
         {
+            //登录成功后更新注销按钮显示
+            _ui.m_btnLogout.visible = GameController.CheckLoginCache(false);
             ServerInfosComponent serverInfosComponent = GameGlobal.zoneScene.GetComponent<ServerInfosComponent>();
             ServerInfosComponent serverInfosComponent = GameGlobal.zoneScene.GetComponent<ServerInfosComponent>();
             if (serverInfosComponent.ServerInfoList.Count == 0)
             if (serverInfosComponent.ServerInfoList.Count == 0)
             {
             {