mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Add code comments
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
b25777b734
commit
1cf264a3a9
1 changed files with 2 additions and 0 deletions
|
|
@ -1646,6 +1646,8 @@ namespace Flow.Launcher.ViewModel
|
|||
var deviationIndex = _topMostRecord.GetTopMostIndex(result);
|
||||
if (deviationIndex != -1)
|
||||
{
|
||||
// Adjust the score based on the result's position in the top-most list.
|
||||
// A lower deviationIndex (closer to the top) results in a higher score.
|
||||
result.Score = Result.MaxScore - deviationIndex;
|
||||
}
|
||||
else
|
||||
|
|
|
|||
Loading…
Reference in a new issue