mirror of
https://github.com/microsoft/PowerToys
synced 2024-11-22 00:03:48 +00:00
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");
|
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()
|
private void WakeupApp()
|
||||||
|
Loading…
Reference in New Issue
Block a user