mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-08 04:07:40 +02:00
Update score when titles are same
This commit is contained in:
@@ -40,10 +40,14 @@ namespace Wox.Helper
|
|||||||
{
|
{
|
||||||
Result oldItem = Items[i];
|
Result oldItem = Items[i];
|
||||||
Result newItem = newItems[i];
|
Result newItem = newItems[i];
|
||||||
if (!Equals(oldItem, newItem))
|
if (!oldItem.Equals(newItem))
|
||||||
{
|
{
|
||||||
this[i] = newItem;
|
this[i] = newItem;
|
||||||
}
|
}
|
||||||
|
else if (oldItem.Score != newItem.Score)
|
||||||
|
{
|
||||||
|
this[i].Score = newItem.Score;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (newCount > oldCount)
|
if (newCount > oldCount)
|
||||||
|
|||||||
Reference in New Issue
Block a user