mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Improve context menu item action response
This commit is contained in:
parent
32beddefe3
commit
1562c88ea7
3 changed files with 7 additions and 0 deletions
|
|
@ -1273,6 +1273,8 @@ namespace Flow.Launcher.ViewModel
|
|||
{
|
||||
_topMostRecord.Remove(result);
|
||||
App.API.ShowMsg(InternationalizationManager.Instance.GetTranslation("success"));
|
||||
App.API.BackToQueryResults();
|
||||
App.API.ReQuery();
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
|
@ -1289,6 +1291,8 @@ namespace Flow.Launcher.ViewModel
|
|||
{
|
||||
_topMostRecord.AddOrUpdate(result);
|
||||
App.API.ShowMsg(InternationalizationManager.Instance.GetTranslation("success"));
|
||||
App.API.BackToQueryResults();
|
||||
App.API.ReQuery();
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
|
|
|||
|
|
@ -242,6 +242,7 @@ namespace Flow.Launcher.Plugin.Explorer
|
|||
var name = "Plugin: Folder";
|
||||
var message = $"File not found: {e.Message}";
|
||||
Context.API.ShowMsgError(name, message);
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
|
|
|
|||
|
|
@ -264,6 +264,8 @@ namespace Flow.Launcher.Plugin.Program
|
|||
Context.API.GetTranslation("flowlauncher_plugin_program_disable_dlgtitle_success"),
|
||||
Context.API.GetTranslation(
|
||||
"flowlauncher_plugin_program_disable_dlgtitle_success_message"));
|
||||
Context.API.BackToQueryResults();
|
||||
Context.API.ReQuery();
|
||||
return false;
|
||||
},
|
||||
IcoPath = "Images/disable.png",
|
||||
|
|
|
|||
Loading…
Reference in a new issue