mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
add null check when processing result update
This commit is contained in:
parent
4cf143d435
commit
3076e501bf
1 changed files with 3 additions and 4 deletions
|
|
@ -217,10 +217,9 @@ namespace Flow.Launcher.ViewModel
|
|||
|
||||
var results = Results as IEnumerable<ResultViewModel>;
|
||||
|
||||
return results.Where(r => !resultsForUpdates.Any(u => u.Metadata.ID == r.Result.PluginID))
|
||||
.Concat(resultsForUpdates
|
||||
.SelectMany(u => u.Results)
|
||||
.Select(r => new ResultViewModel(r, _settings)))
|
||||
return results.Where(r => r != null && !resultsForUpdates.Any(u => u.Metadata.ID == r.Result.PluginID))
|
||||
.Concat(
|
||||
resultsForUpdates.SelectMany(u => u.Results, (u, r) => new ResultViewModel(r, _settings)))
|
||||
.OrderByDescending(rv => rv.Result.Score)
|
||||
.ToList();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue