Skip to content

Commit 5aeab24

Browse files
committed
add force closin
1 parent e31fdc0 commit 5aeab24

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Flow.Launcher/MainWindow.xaml.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ private async void OnClosing(object sender, CancelEventArgs e)
5353
_viewModel.Save();
5454
e.Cancel = true;
5555
await PluginManager.DisposePluginsAsync();
56-
Application.Current.Shutdown();
56+
Environment.Exit(0);
5757
}
5858

5959
private void OnInitialized(object sender, EventArgs e)
@@ -185,7 +185,7 @@ private void InitializeNotifyIcon()
185185
var setting = items.Add(InternationalizationManager.Instance.GetTranslation("iconTraySettings"));
186186
setting.Click += (o, e) => App.API.OpenSettingDialog();
187187
var exit = items.Add(InternationalizationManager.Instance.GetTranslation("iconTrayExit"));
188-
exit.Click += (o, e) => Close();
188+
exit.Click += (o, e) => Environment.Exit(0);
189189

190190
_notifyIcon.ContextMenuStrip = menu;
191191
_notifyIcon.MouseClick += (o, e) =>

0 commit comments

Comments
 (0)