mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
add force closin
This commit is contained in:
parent
e31fdc03c6
commit
5aeab2456b
1 changed files with 2 additions and 2 deletions
|
|
@ -53,7 +53,7 @@ namespace Flow.Launcher
|
|||
_viewModel.Save();
|
||||
e.Cancel = true;
|
||||
await PluginManager.DisposePluginsAsync();
|
||||
Application.Current.Shutdown();
|
||||
Environment.Exit(0);
|
||||
}
|
||||
|
||||
private void OnInitialized(object sender, EventArgs e)
|
||||
|
|
@ -185,7 +185,7 @@ namespace Flow.Launcher
|
|||
var setting = items.Add(InternationalizationManager.Instance.GetTranslation("iconTraySettings"));
|
||||
setting.Click += (o, e) => App.API.OpenSettingDialog();
|
||||
var exit = items.Add(InternationalizationManager.Instance.GetTranslation("iconTrayExit"));
|
||||
exit.Click += (o, e) => Close();
|
||||
exit.Click += (o, e) => Environment.Exit(0);
|
||||
|
||||
_notifyIcon.ContextMenuStrip = menu;
|
||||
_notifyIcon.MouseClick += (o, e) =>
|
||||
|
|
|
|||
Loading…
Reference in a new issue