diff options
author | sr55 <[email protected]> | 2019-12-10 20:45:41 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2019-12-10 20:46:03 +0000 |
commit | 8f5748ede67c8e93965daf3abf739ba3cc4e8266 (patch) | |
tree | 5caa1869347824bc3cd26afff79a63fe466237af /win | |
parent | e31bcd71174cd146f4b0e2eb46d5de8b83b89475 (diff) |
WinGui: Expand the hack to make the window appear correctly when restoring from task tray. Fixes #2497
Diffstat (limited to 'win')
-rw-r--r-- | win/CS/HandBrakeWPF/Views/ShellView.xaml.cs | 5 |
1 files changed, 4 insertions, 1 deletions
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;
}
/// <summary>
|