Fix: Prevent user from closing the main window via Alt+F4

This commit is contained in:
Yeechan Lu 2014-01-30 01:02:49 +08:00
parent 5adcbb775d
commit cc49948a59

View File

@ -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()