diff options
author | sr55 <[email protected]> | 2019-10-18 21:02:20 +0100 |
---|---|---|
committer | sr55 <[email protected]> | 2019-10-18 21:02:34 +0100 |
commit | 9901594fa20c59984459b316740ea9b3ca49b824 (patch) | |
tree | 3384a3641315cb0c9f3dd55c8ad6babca653e31e /win | |
parent | f362bb6b372a44b71e946d016e73c1a6ea48016c (diff) |
WinGui: Workaround a broken behaviour in Windows Task Tray. Maximise window is now single click.
Diffstat (limited to 'win')
-rw-r--r-- | win/CS/HandBrakeWPF/Views/ShellView.xaml.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/win/CS/HandBrakeWPF/Views/ShellView.xaml.cs b/win/CS/HandBrakeWPF/Views/ShellView.xaml.cs index b61cd55ab..4d0ae62e6 100644 --- a/win/CS/HandBrakeWPF/Views/ShellView.xaml.cs +++ b/win/CS/HandBrakeWPF/Views/ShellView.xaml.cs @@ -61,7 +61,8 @@ namespace HandBrakeWPF.Views Stream iconStream = streamResourceInfo.Stream;
this.notifyIcon.Icon = new Icon(iconStream);
}
- this.notifyIcon.DoubleClick += this.NotifyIconClick;
+
+ this.notifyIcon.Click += this.NotifyIconClick;
this.StateChanged += this.ShellViewStateChanged;
}
@@ -89,7 +90,6 @@ namespace HandBrakeWPF.Views this.InputBindings.Add(new InputBinding(new ProcessShortcutCommand(new KeyGesture(Key.D6, ModifierKeys.Control)), new KeyGesture(Key.D6, ModifierKeys.Control)));
this.InputBindings.Add(new InputBinding(new ProcessShortcutCommand(new KeyGesture(Key.D7, ModifierKeys.Control)), new KeyGesture(Key.D7, ModifierKeys.Control)));
-
// Enable Windows 7 Taskbar progress indication.
if (this.TaskbarItemInfo == null)
{
@@ -157,6 +157,7 @@ namespace HandBrakeWPF.Views private void NotifyIconClick(object sender, EventArgs e)
{
this.WindowState = WindowState.Normal;
+ this.Topmost = true;
}
/// <summary>
|