mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Revert change to close command and remove async in ToggleFlow
This commit is contained in:
parent
079da725db
commit
a4327122ec
2 changed files with 4 additions and 4 deletions
|
|
@ -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) => Environment.Exit(0);
|
||||
exit.Click += (o, e) => Close();
|
||||
|
||||
_notifyIcon.ContextMenuStrip = menu;
|
||||
_notifyIcon.MouseClick += (o, e) =>
|
||||
|
|
|
|||
|
|
@ -273,7 +273,7 @@ namespace Flow.Launcher.ViewModel
|
|||
ReloadPluginDataCommand = new RelayCommand(_ =>
|
||||
{
|
||||
Hide();
|
||||
|
||||
|
||||
PluginManager
|
||||
.ReloadData()
|
||||
.ContinueWith(_ =>
|
||||
|
|
@ -315,7 +315,7 @@ namespace Flow.Launcher.ViewModel
|
|||
/// <param name="queryText"></param>
|
||||
public void ChangeQueryText(string queryText, bool reQuery = false)
|
||||
{
|
||||
if (QueryText!=queryText)
|
||||
if (QueryText != queryText)
|
||||
{
|
||||
// re-query is done in QueryText's setter method
|
||||
QueryText = queryText;
|
||||
|
|
@ -696,7 +696,7 @@ namespace Flow.Launcher.ViewModel
|
|||
OpenResultCommandModifiers = _settings.OpenResultModifiers ?? DefaultOpenResultModifiers;
|
||||
}
|
||||
|
||||
public async void ToggleFlowLauncher()
|
||||
public void ToggleFlowLauncher()
|
||||
{
|
||||
if (MainWindowVisibility != Visibility.Visible)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue