From 5ff916a17bc20078151a80fe98b3a0d367a2e4d4 Mon Sep 17 00:00:00 2001 From: TheBestPessimist Date: Sun, 5 Mar 2023 10:55:09 +0200 Subject: [PATCH] Use the `SearchResult.Score` instead of `0` when creating the plugin `Result` --- Plugins/Flow.Launcher.Plugin.Explorer/Search/ResultManager.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/Search/ResultManager.cs b/Plugins/Flow.Launcher.Plugin.Explorer/Search/ResultManager.cs index bee7cb1bc..a463ac6fe 100644 --- a/Plugins/Flow.Launcher.Plugin.Explorer/Search/ResultManager.cs +++ b/Plugins/Flow.Launcher.Plugin.Explorer/Search/ResultManager.cs @@ -59,9 +59,9 @@ namespace Flow.Launcher.Plugin.Explorer.Search return result.Type switch { ResultType.Folder or ResultType.Volume => - CreateFolderResult(Path.GetFileName(result.FullPath), result.FullPath, result.FullPath, query, 0, result.WindowsIndexed), + CreateFolderResult(Path.GetFileName(result.FullPath), result.FullPath, result.FullPath, query, result.Score, result.WindowsIndexed), ResultType.File => - CreateFileResult(result.FullPath, query, 0, result.WindowsIndexed), + CreateFileResult(result.FullPath, query, result.Score, result.WindowsIndexed), _ => throw new ArgumentOutOfRangeException() }; }