Fix path search logic

open folder in file manager when path search is disabled
This commit is contained in:
Vic 2023-03-24 15:45:45 +08:00
parent 0f5b02fa38
commit 9db13fdbb6

View file

@ -80,7 +80,7 @@ namespace Flow.Launcher.Plugin.Explorer.Search
Action = c => Action = c =>
{ {
// open folder // open folder
if (c.SpecialKeyState.ToModifierKeys() == (ModifierKeys.Control | ModifierKeys.Shift) || (!Settings.PathSearchKeywordEnabled && !Settings.SearchActionKeywordEnabled)) if (c.SpecialKeyState.ToModifierKeys() == (ModifierKeys.Control | ModifierKeys.Shift))
{ {
try try
{ {
@ -94,7 +94,7 @@ namespace Flow.Launcher.Plugin.Explorer.Search
} }
} }
// Open containing folder // Open containing folder
if (c.SpecialKeyState.ToModifierKeys() == ModifierKeys.Control || (!Settings.PathSearchKeywordEnabled && !Settings.SearchActionKeywordEnabled)) if (c.SpecialKeyState.ToModifierKeys() == ModifierKeys.Control)
{ {
try 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 try
{ {