Skip to content

Commit 1cf264a

Browse files
Jack251970Copilot
andauthored
Add code comments
Co-authored-by: Copilot <[email protected]>
1 parent b25777b commit 1cf264a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Flow.Launcher/ViewModel/MainViewModel.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1646,6 +1646,8 @@ public void UpdateResultView(ICollection<ResultsForUpdate> resultsForUpdates)
16461646
var deviationIndex = _topMostRecord.GetTopMostIndex(result);
16471647
if (deviationIndex != -1)
16481648
{
1649+
// Adjust the score based on the result's position in the top-most list.
1650+
// A lower deviationIndex (closer to the top) results in a higher score.
16491651
result.Score = Result.MaxScore - deviationIndex;
16501652
}
16511653
else

0 commit comments

Comments
 (0)