Revert "results and query update fixes"

This reverts commit ced0faf916.
This commit is contained in:
AT
2019-12-14 00:07:27 +02:00
parent ced0faf916
commit 3dfccea522
4 changed files with 37 additions and 50 deletions

View File

@@ -248,10 +248,6 @@ namespace Wox.ViewModel
}
}
/// <summary>
/// Update the results collection with new results, try to keep identical results
/// </summary>
/// <param name="newItems"></param>
public void Update(List<ResultViewModel> newItems)
{
int newCount = newItems.Count;
@@ -263,7 +259,7 @@ namespace Wox.ViewModel
ResultViewModel oldResult = this[i];
ResultViewModel newResult = newItems[i];
if (!oldResult.Equals(newResult))
{ // result is not the same update it in the current index
{
this[i] = newResult;
}
else if (oldResult.Result.Score != newResult.Result.Score)