From b2dc2ef71b768e402ab685e8883dccdd8b6c243b Mon Sep 17 00:00:00 2001 From: Jeremy Wu Date: Tue, 16 Mar 2021 07:12:01 +1100 Subject: [PATCH] do not exclude if in Quick Access list --- .../Search/SearchManager.cs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/Search/SearchManager.cs b/Plugins/Flow.Launcher.Plugin.Explorer/Search/SearchManager.cs index 2983c7d35..e78324718 100644 --- a/Plugins/Flow.Launcher.Plugin.Explorer/Search/SearchManager.cs +++ b/Plugins/Flow.Launcher.Plugin.Explorer/Search/SearchManager.cs @@ -1,4 +1,4 @@ -using Flow.Launcher.Plugin.Explorer.Search.DirectoryInfo; +using Flow.Launcher.Plugin.Explorer.Search.DirectoryInfo; using Flow.Launcher.Plugin.Explorer.Search.QuickAccessLinks; using Flow.Launcher.Plugin.Explorer.Search.WindowsIndex; using Flow.Launcher.Plugin.SharedCommands; @@ -65,9 +65,12 @@ namespace Flow.Launcher.Plugin.Explorer.Search if (!querySearch.IsLocationPathString() && !isEnvironmentVariablePath) { - results.UnionWith(await WindowsIndexFilesAndFoldersSearchAsync(query, querySearch, token).ConfigureAwait(false)); + var filteredResults = FilterOutResultsFromWindowsIndexExclusionList( + await WindowsIndexFilesAndFoldersSearchAsync(query, querySearch, token).ConfigureAwait(false)); - return FilterOutResultsFromWindowsIndexExclusionList(results).ToList(); + results.UnionWith(filteredResults); + + return results.ToList(); } var locationPath = querySearch;