mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
ensure history results ordered by ExecutedDateTime
This commit is contained in:
parent
177e60739c
commit
11645fdc9a
1 changed files with 4 additions and 2 deletions
|
|
@ -357,8 +357,8 @@ namespace Flow.Launcher.ViewModel
|
|||
SelectedResults = History;
|
||||
if (History.Results.Count > 0)
|
||||
{
|
||||
History.SelectedIndex = 0;
|
||||
History.SelectedItem = History.Results[0];
|
||||
SelectedResults.SelectedIndex = 0;
|
||||
SelectedResults.SelectedItem = History.Results[0];
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
@ -1326,6 +1326,8 @@ namespace Flow.Launcher.ViewModel
|
|||
{
|
||||
var results = new List<Result>();
|
||||
|
||||
historyItems = historyItems.OrderByDescending(x => x.ExecutedDateTime);
|
||||
|
||||
if (Settings.HistoryStyle == HistoryStyle.LastOpened)
|
||||
{
|
||||
// Items saved to disk are differentiated by Query also, but LastOpened style only cares about unique results
|
||||
|
|
|
|||
Loading…
Reference in a new issue