Skip to content

Commit 9db13fd

Browse files
Fix path search logic
open folder in file manager when path search is disabled
1 parent 0f5b02f commit 9db13fd

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Plugins/Flow.Launcher.Plugin.Explorer/Search/ResultManager.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ internal static Result CreateFolderResult(string title, string subtitle, string
8080
Action = c =>
8181
{
8282
// open folder
83-
if (c.SpecialKeyState.ToModifierKeys() == (ModifierKeys.Control | ModifierKeys.Shift) || (!Settings.PathSearchKeywordEnabled && !Settings.SearchActionKeywordEnabled))
83+
if (c.SpecialKeyState.ToModifierKeys() == (ModifierKeys.Control | ModifierKeys.Shift))
8484
{
8585
try
8686
{
@@ -94,7 +94,7 @@ internal static Result CreateFolderResult(string title, string subtitle, string
9494
}
9595
}
9696
// Open containing folder
97-
if (c.SpecialKeyState.ToModifierKeys() == ModifierKeys.Control || (!Settings.PathSearchKeywordEnabled && !Settings.SearchActionKeywordEnabled))
97+
if (c.SpecialKeyState.ToModifierKeys() == ModifierKeys.Control)
9898
{
9999
try
100100
{
@@ -108,7 +108,8 @@ internal static Result CreateFolderResult(string title, string subtitle, string
108108
}
109109
}
110110

111-
if (Settings.DefaultOpenInFileManager)
111+
// If path search is disabled just open it in file manager
112+
if (Settings.DefaultOpenInFileManager || (!Settings.PathSearchKeywordEnabled && !Settings.SearchActionKeywordEnabled))
112113
{
113114
try
114115
{

0 commit comments

Comments
 (0)