mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Fix #49. Alt + F4 will hide app now rather than crash
This commit is contained in:
parent
10cbe25f17
commit
27dde4e70d
1 changed files with 8 additions and 0 deletions
|
|
@ -71,6 +71,14 @@ namespace Wox
|
|||
SetCustomPluginHotkey();
|
||||
|
||||
globalHotkey.hookedKeyboardCallback += KListener_hookedKeyboardCallback;
|
||||
|
||||
this.Closing += new System.ComponentModel.CancelEventHandler(MainWindow_Closing);
|
||||
}
|
||||
|
||||
void MainWindow_Closing(object sender, System.ComponentModel.CancelEventArgs e)
|
||||
{
|
||||
this.HideWox();
|
||||
e.Cancel = true;
|
||||
}
|
||||
|
||||
private void MainWindow_OnLoaded(object sender, RoutedEventArgs e)
|
||||
|
|
|
|||
Loading…
Reference in a new issue