Explorar el Código

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 hace 4 años
padre
commit
2d1a5bf094

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