Use the SearchResult.Score instead of 0 when creating the plugin Result

This commit is contained in:
TheBestPessimist 2023-03-05 10:55:09 +02:00 committed by TheBestPessimist
parent ac3c955539
commit 5ff916a17b

View file

@ -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()
};
}