Skip to content

Commit ed0b360

Browse files
Hide open windows index context menu when result is not from it
1 parent 724160d commit ed0b360

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,10 @@ public List<Result> LoadContextMenus(Result selectedResult)
4949
}
5050
contextMenus.Add(CreateOpenContainingFolderResult(record));
5151

52-
contextMenus.Add(CreateOpenWindowsIndexingOptions());
52+
if (record.WindowsIndexed)
53+
{
54+
contextMenus.Add(CreateOpenWindowsIndexingOptions());
55+
}
5356

5457
if (record.ShowIndexState)
5558
contextMenus.Add(new Result

0 commit comments

Comments
 (0)