mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Fix: Prevent user from closing the main window via Alt+F4
This commit is contained in:
parent
5adcbb775d
commit
cc49948a59
1 changed files with 7 additions and 0 deletions
|
|
@ -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