소스 검색

Make main window visible when selecting things

Selecting things like maids, props etc would not make the main window UI
visible when it was hidden with tab.
habeebweeb 4 년 전
부모
커밋
2d1a5bf094
1개의 변경된 파일6개의 추가작업 그리고 1개의 파일을 삭제
  1. 6 1
      COM3D2.MeidoPhotoStudio.Plugin/MeidoPhotoStudio/GUI/Windows/MainWindow.cs

+ 6 - 1
COM3D2.MeidoPhotoStudio.Plugin/MeidoPhotoStudio/GUI/Windows/MainWindow.cs

@@ -135,13 +135,18 @@ namespace COM3D2.MeidoPhotoStudio.Plugin
                 Constants.Window newWindow = args.IsBody ? Constants.Window.Pose : Constants.Window.Face;
                 ChangeWindow(newWindow);
             }
-            else currentWindowPane.UpdatePanes();
+            else
+            {
+                currentWindowPane.UpdatePanes();
+                Visible = true;
+            }
         }
 
         private void ChangeWindow(Constants.Window window)
         {
             if (selectedWindow == window) currentWindowPane.UpdatePanes();
             else tabsPane.SelectedTab = window;
+            Visible = true;
         }
     }
 }