Преглед на файлове

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