From 9db13fdbb6d9f99f175341920d5b5f2d793d0655 Mon Sep 17 00:00:00 2001 From: Vic <10308169+VictoriousRaptor@users.noreply.github.com> Date: Fri, 24 Mar 2023 15:45:45 +0800 Subject: [PATCH] Fix path search logic open folder in file manager when path search is disabled --- .../Flow.Launcher.Plugin.Explorer/Search/ResultManager.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/Search/ResultManager.cs b/Plugins/Flow.Launcher.Plugin.Explorer/Search/ResultManager.cs index 76bf54acd..c07d83611 100644 --- a/Plugins/Flow.Launcher.Plugin.Explorer/Search/ResultManager.cs +++ b/Plugins/Flow.Launcher.Plugin.Explorer/Search/ResultManager.cs @@ -80,7 +80,7 @@ namespace Flow.Launcher.Plugin.Explorer.Search Action = c => { // open folder - if (c.SpecialKeyState.ToModifierKeys() == (ModifierKeys.Control | ModifierKeys.Shift) || (!Settings.PathSearchKeywordEnabled && !Settings.SearchActionKeywordEnabled)) + if (c.SpecialKeyState.ToModifierKeys() == (ModifierKeys.Control | ModifierKeys.Shift)) { try { @@ -94,7 +94,7 @@ namespace Flow.Launcher.Plugin.Explorer.Search } } // Open containing folder - if (c.SpecialKeyState.ToModifierKeys() == ModifierKeys.Control || (!Settings.PathSearchKeywordEnabled && !Settings.SearchActionKeywordEnabled)) + if (c.SpecialKeyState.ToModifierKeys() == ModifierKeys.Control) { try { @@ -108,7 +108,8 @@ namespace Flow.Launcher.Plugin.Explorer.Search } } - if (Settings.DefaultOpenInFileManager) + // If path search is disabled just open it in file manager + if (Settings.DefaultOpenInFileManager || (!Settings.PathSearchKeywordEnabled && !Settings.SearchActionKeywordEnabled)) { try {