Skip to content

Commit ff5e369

Browse files
committed
add return if no quick access links or query
1 parent 587bf61 commit ff5e369

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ internal async Task<List<Result>> SearchAsync(Query query, CancellationToken tok
4545
&& string.IsNullOrEmpty(query.Search))
4646
return quickFolderAccess.FolderListAll(query, settings.QuickFolderAccessLinks, context);
4747

48+
// No records in QuickFolderAccessLinks, user has not typed any query apart from SearchActionKeyword, no need for further search
49+
if (string.IsNullOrEmpty(query.Search))
50+
return results;
51+
4852
var quickFolderLinks = quickFolderAccess.FolderListMatched(query, settings.QuickFolderAccessLinks, context);
4953

5054
if (quickFolderLinks.Count > 0)

0 commit comments

Comments
 (0)