From 39d03522f7ea220bb277ce5842a98e6d49be7d11 Mon Sep 17 00:00:00 2001 From: sr55 Date: Sat, 16 Jul 2016 20:41:54 +0100 Subject: WinGui: Show Queue button can now maximise a minimised window. Fixes #262 --- win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'win/CS') 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().FirstOrDefault(x => x.GetType() == typeof(QueueView)); if (window != null) { + if (window.WindowState == WindowState.Minimized) + { + window.WindowState = WindowState.Normal; + } + window.Activate(); } else -- cgit v1.2.3