浏览代码

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;
         }
     }
 }