Merge branch 'explorerMerge' of https://github.com/Flow-Launcher/Flow.Launcher into explorerMerge

This commit is contained in:
DB p 2022-11-29 19:50:56 +09:00
commit 90f6176d1a

View file

@ -39,7 +39,7 @@ namespace Flow.Launcher.Plugin.Explorer
var contextMenus = new List<Result>();
if (selectedResult.ContextData is SearchResult record)
{
if (record.Type == ResultType.File)
if (record.Type == ResultType.File && !string.IsNullOrEmpty(Settings.EditorPath))
contextMenus.Add(CreateOpenWithEditorResult(record));
if (record.Type == ResultType.Folder && record.WindowsIndexed)
@ -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