mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
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
This commit is contained in:
parent
2ee24b3f71
commit
2abbca17ef
1 changed files with 5 additions and 5 deletions
|
|
@ -37,17 +37,17 @@ namespace Flow.Launcher.Plugin.Explorer.Search
|
||||||
if (IsFileContentSearch(query.ActionKeyword))
|
if (IsFileContentSearch(query.ActionKeyword))
|
||||||
return WindowsIndexFileContentSearch(query, querySearch);
|
return WindowsIndexFileContentSearch(query, querySearch);
|
||||||
|
|
||||||
var quickFolderLinks = quickFolderAccess.FolderListMatched(query, settings.QuickFolderAccessLinks, context);
|
|
||||||
|
|
||||||
if (quickFolderLinks.Count > 0)
|
|
||||||
results.AddRange(quickFolderLinks);
|
|
||||||
|
|
||||||
// This allows the user to type the assigned action keyword and only see the list of quick folder links
|
// This allows the user to type the assigned action keyword and only see the list of quick folder links
|
||||||
if (settings.QuickFolderAccessLinks.Count > 0
|
if (settings.QuickFolderAccessLinks.Count > 0
|
||||||
&& query.ActionKeyword == settings.SearchActionKeyword
|
&& query.ActionKeyword == settings.SearchActionKeyword
|
||||||
&& string.IsNullOrEmpty(query.Search))
|
&& string.IsNullOrEmpty(query.Search))
|
||||||
return quickFolderAccess.FolderListAll(query, settings.QuickFolderAccessLinks, context);
|
return quickFolderAccess.FolderListAll(query, settings.QuickFolderAccessLinks, context);
|
||||||
|
|
||||||
|
var quickFolderLinks = quickFolderAccess.FolderListMatched(query, settings.QuickFolderAccessLinks, context);
|
||||||
|
|
||||||
|
if (quickFolderLinks.Count > 0)
|
||||||
|
results.AddRange(quickFolderLinks);
|
||||||
|
|
||||||
var isEnvironmentVariable = EnvironmentVariables.IsEnvironmentVariableSearch(querySearch);
|
var isEnvironmentVariable = EnvironmentVariables.IsEnvironmentVariableSearch(querySearch);
|
||||||
|
|
||||||
if (isEnvironmentVariable)
|
if (isEnvironmentVariable)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue