mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Record user-selected results for ranking
Moved `_userSelectedRecord.Add(result)` outside the `if (queryResultsSelected)` block to ensure all user-selected results are recorded, regardless of their source (query results, context menu, or history). Added a comment to clarify that only query results are added to history.
This commit is contained in:
parent
c73689fbc3
commit
629c2eb4c6
1 changed files with 4 additions and 1 deletions
|
|
@ -532,9 +532,12 @@ namespace Flow.Launcher.ViewModel
|
|||
Hide();
|
||||
}
|
||||
}
|
||||
|
||||
// Record user selected result for result ranking
|
||||
_userSelectedRecord.Add(result);
|
||||
// Add item to histroy only if it is from results but not context menu or history
|
||||
if (queryResultsSelected)
|
||||
{
|
||||
_userSelectedRecord.Add(result);
|
||||
_history.Add(result);
|
||||
lastHistoryIndex = 1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue