Hide openwith editor when editor path is null or empty

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

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)