Fix: Prevent user from closing the main window via Alt+F4
This commit is contained in:
parent
5adcbb775d
commit
cc49948a59
|
@ -51,6 +51,13 @@ namespace Wox
|
|||
{
|
||||
SetTheme(CommonStorage.Instance.UserSetting.Theme = "Default");
|
||||
}
|
||||
|
||||
this.Closing += MainWindow_Closing;
|
||||
}
|
||||
|
||||
void MainWindow_Closing(object sender, System.ComponentModel.CancelEventArgs e)
|
||||
{
|
||||
e.Cancel = true;
|
||||
}
|
||||
|
||||
private void WakeupApp()
|
||||
|
|
Loading…
Reference in a new issue