mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Use the SearchResult.Score instead of 0 when creating the plugin Result
This commit is contained in:
parent
ac3c955539
commit
5ff916a17b
1 changed files with 2 additions and 2 deletions
|
|
@ -59,9 +59,9 @@ namespace Flow.Launcher.Plugin.Explorer.Search
|
||||||
return result.Type switch
|
return result.Type switch
|
||||||
{
|
{
|
||||||
ResultType.Folder or ResultType.Volume =>
|
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 =>
|
ResultType.File =>
|
||||||
CreateFileResult(result.FullPath, query, 0, result.WindowsIndexed),
|
CreateFileResult(result.FullPath, query, result.Score, result.WindowsIndexed),
|
||||||
_ => throw new ArgumentOutOfRangeException()
|
_ => throw new ArgumentOutOfRangeException()
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue