Skip to content

Commit 1562c88

Browse files
committed
Improve context menu item action response
1 parent 32bedde commit 1562c88

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

Flow.Launcher/ViewModel/MainViewModel.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1273,6 +1273,8 @@ private Result ContextMenuTopMost(Result result)
12731273
{
12741274
_topMostRecord.Remove(result);
12751275
App.API.ShowMsg(InternationalizationManager.Instance.GetTranslation("success"));
1276+
App.API.BackToQueryResults();
1277+
App.API.ReQuery();
12761278
return false;
12771279
}
12781280
};
@@ -1289,6 +1291,8 @@ private Result ContextMenuTopMost(Result result)
12891291
{
12901292
_topMostRecord.AddOrUpdate(result);
12911293
App.API.ShowMsg(InternationalizationManager.Instance.GetTranslation("success"));
1294+
App.API.BackToQueryResults();
1295+
App.API.ReQuery();
12921296
return false;
12931297
}
12941298
};

Plugins/Flow.Launcher.Plugin.Explorer/ContextMenu.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,7 @@ public List<Result> LoadContextMenus(Result selectedResult)
242242
var name = "Plugin: Folder";
243243
var message = $"File not found: {e.Message}";
244244
Context.API.ShowMsgError(name, message);
245+
return false;
245246
}
246247

247248
return true;

Plugins/Flow.Launcher.Plugin.Program/Main.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,8 @@ public List<Result> LoadContextMenus(Result selectedResult)
264264
Context.API.GetTranslation("flowlauncher_plugin_program_disable_dlgtitle_success"),
265265
Context.API.GetTranslation(
266266
"flowlauncher_plugin_program_disable_dlgtitle_success_message"));
267+
Context.API.BackToQueryResults();
268+
Context.API.ReQuery();
267269
return false;
268270
},
269271
IcoPath = "Images/disable.png",

0 commit comments

Comments
 (0)