From 8f5748ede67c8e93965daf3abf739ba3cc4e8266 Mon Sep 17 00:00:00 2001 From: sr55 Date: Tue, 10 Dec 2019 20:45:41 +0000 Subject: WinGui: Expand the hack to make the window appear correctly when restoring from task tray. Fixes #2497 --- win/CS/HandBrakeWPF/Views/ShellView.xaml.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'win') diff --git a/win/CS/HandBrakeWPF/Views/ShellView.xaml.cs b/win/CS/HandBrakeWPF/Views/ShellView.xaml.cs index 4d0ae62e6..81ed1f771 100644 --- a/win/CS/HandBrakeWPF/Views/ShellView.xaml.cs +++ b/win/CS/HandBrakeWPF/Views/ShellView.xaml.cs @@ -157,7 +157,10 @@ namespace HandBrakeWPF.Views private void NotifyIconClick(object sender, EventArgs e) { this.WindowState = WindowState.Normal; - this.Topmost = true; + + // Bit of a hack but does work + this.Topmost = true; + this.Topmost = false; } /// -- cgit v1.2.3