From ed0b3608abd6439ba0af1d3b578195a10c932006 Mon Sep 17 00:00:00 2001 From: Vic <10308169+VictoriousRaptor@users.noreply.github.com> Date: Tue, 29 Nov 2022 18:46:37 +0800 Subject: [PATCH] Hide open windows index context menu when result is not from it --- Plugins/Flow.Launcher.Plugin.Explorer/ContextMenu.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/ContextMenu.cs b/Plugins/Flow.Launcher.Plugin.Explorer/ContextMenu.cs index 519a45db9..bd1aa654a 100644 --- a/Plugins/Flow.Launcher.Plugin.Explorer/ContextMenu.cs +++ b/Plugins/Flow.Launcher.Plugin.Explorer/ContextMenu.cs @@ -49,7 +49,10 @@ namespace Flow.Launcher.Plugin.Explorer } contextMenus.Add(CreateOpenContainingFolderResult(record)); - contextMenus.Add(CreateOpenWindowsIndexingOptions()); + if (record.WindowsIndexed) + { + contextMenus.Add(CreateOpenWindowsIndexingOptions()); + } if (record.ShowIndexState) contextMenus.Add(new Result