From 19e769f347fe7ebe1d10087210f6bd1d7fa395ec Mon Sep 17 00:00:00 2001 From: Phoenix Date: Mon, 7 Aug 2023 15:23:28 +0300 Subject: [PATCH] Fix windows search empty paths - more accurate string comparison --- .../Search/WindowsIndex/WindowsIndex.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/Search/WindowsIndex/WindowsIndex.cs b/Plugins/Flow.Launcher.Plugin.Explorer/Search/WindowsIndex/WindowsIndex.cs index ecec7ebe997..6971475b4b4 100644 --- a/Plugins/Flow.Launcher.Plugin.Explorer/Search/WindowsIndex/WindowsIndex.cs +++ b/Plugins/Flow.Launcher.Plugin.Explorer/Search/WindowsIndex/WindowsIndex.cs @@ -56,7 +56,7 @@ private static async IAsyncEnumerable ExecuteWindowsIndexSearchAsy .GetString(1) .Replace("#", "%23", StringComparison.OrdinalIgnoreCase); - if (encodedFragmentPath == "file:") + if (string.Compare(encodedFragmentPath, "file:", StringComparison.OrdinalIgnoreCase) == 0) continue; var path = new Uri(encodedFragmentPath).LocalPath;