Skip to content

Commit 2abbca1

Browse files
committed
move Quick Folder Access list all method up
move above matched Quick Folder Links because it's return type and will not run the remaining code
1 parent 2ee24b3 commit 2abbca1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,17 @@ internal List<Result> Search(Query query)
3737
if (IsFileContentSearch(query.ActionKeyword))
3838
return WindowsIndexFileContentSearch(query, querySearch);
3939

40-
var quickFolderLinks = quickFolderAccess.FolderListMatched(query, settings.QuickFolderAccessLinks, context);
41-
42-
if (quickFolderLinks.Count > 0)
43-
results.AddRange(quickFolderLinks);
44-
4540
// This allows the user to type the assigned action keyword and only see the list of quick folder links
4641
if (settings.QuickFolderAccessLinks.Count > 0
4742
&& query.ActionKeyword == settings.SearchActionKeyword
4843
&& string.IsNullOrEmpty(query.Search))
4944
return quickFolderAccess.FolderListAll(query, settings.QuickFolderAccessLinks, context);
5045

46+
var quickFolderLinks = quickFolderAccess.FolderListMatched(query, settings.QuickFolderAccessLinks, context);
47+
48+
if (quickFolderLinks.Count > 0)
49+
results.AddRange(quickFolderLinks);
50+
5151
var isEnvironmentVariable = EnvironmentVariables.IsEnvironmentVariableSearch(querySearch);
5252

5353
if (isEnvironmentVariable)

0 commit comments

Comments
 (0)