]> granicus.if.org Git - handbrake/commitdiff
WinGui: Show Queue button can now maximise a minimised window. Fixes #262
authorsr55 <sr55.hb@outlook.com>
Sat, 16 Jul 2016 19:41:54 +0000 (20:41 +0100)
committersr55 <sr55.hb@outlook.com>
Sat, 16 Jul 2016 19:42:10 +0000 (20:42 +0100)
win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs

index c6225a5256c98acfac0e7152271c01b69bb83574..6461e29bef2cded9691c3027fea867ed6c3e37f3 100644 (file)
@@ -1313,6 +1313,11 @@ namespace HandBrakeWPF.ViewModels
                 Window window = Application.Current.Windows.Cast<Window>().FirstOrDefault(x => x.GetType() == typeof(QueueView));\r
                 if (window != null)\r
                 {\r
+                    if (window.WindowState == WindowState.Minimized)\r
+                    {\r
+                        window.WindowState = WindowState.Normal;\r
+                    }\r
+\r
                     window.Activate();\r
                 }\r
                 else\r