summaryrefslogtreecommitdiffstats
path: root/win/CS
diff options
context:
space:
mode:
authorsr55 <[email protected]>2016-07-16 20:41:54 +0100
committersr55 <[email protected]>2016-07-16 20:42:10 +0100
commit39d03522f7ea220bb277ce5842a98e6d49be7d11 (patch)
treecf00839133d9b6a023acdcfbdf7d49a05ef8bb01 /win/CS
parentaca48f3c89ef65a6a5d06fe453c779964fe69a57 (diff)
WinGui: Show Queue button can now maximise a minimised window. Fixes #262
Diffstat (limited to 'win/CS')
-rw-r--r--win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs
index c6225a525..6461e29be 100644
--- a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs
+++ b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs
@@ -1313,6 +1313,11 @@ namespace HandBrakeWPF.ViewModels
Window window = Application.Current.Windows.Cast<Window>().FirstOrDefault(x => x.GetType() == typeof(QueueView));
if (window != null)
{
+ if (window.WindowState == WindowState.Minimized)
+ {
+ window.WindowState = WindowState.Normal;
+ }
+
window.Activate();
}
else