mirror of
https://github.com/ppy/osu.git
synced 2026-05-21 21:40:56 +08:00
Avoid triggering changes when add operations are empty
Only seems to happen in tests. I think.
This commit is contained in:
@@ -143,6 +143,9 @@ namespace osu.Game.Screens.SelectV2
|
||||
switch (changed.Action)
|
||||
{
|
||||
case NotifyCollectionChangedAction.Add:
|
||||
if (!newItems!.Any())
|
||||
return;
|
||||
|
||||
Items.AddRange(newItems!.SelectMany(s => s.Beatmaps));
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user