Hide open windows index context menu when result is not from it

This commit is contained in:
Vic 2022-11-29 18:46:37 +08:00
parent 724160d2f0
commit ed0b3608ab

View file

@ -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