diff --git a/Wox/Helper/ListBoxItems.cs b/Wox/Helper/ListBoxItems.cs index 5d62edf11d..bb2bdc2a2e 100644 --- a/Wox/Helper/ListBoxItems.cs +++ b/Wox/Helper/ListBoxItems.cs @@ -18,7 +18,7 @@ namespace Wox.Helper List itemsToRemove = Items.Where(x => predicate(x)).ToList(); if (itemsToRemove.Count > 0) { - + itemsToRemove.ForEach(item => Items.Remove(item)); OnPropertyChanged(new PropertyChangedEventArgs("Count")); @@ -40,10 +40,14 @@ namespace Wox.Helper { Result oldItem = Items[i]; Result newItem = newItems[i]; - if (!Equals(oldItem, newItem)) + if (!oldItem.Equals(newItem)) { this[i] = newItem; } + else if (oldItem.Score != newItem.Score) + { + this[i].Score = newItem.Score; + } } if (newCount > oldCount)