diff --git a/Wox/MainWindow.xaml.cs b/Wox/MainWindow.xaml.cs index 1327c87c1b..75e4bad97f 100644 --- a/Wox/MainWindow.xaml.cs +++ b/Wox/MainWindow.xaml.cs @@ -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()