1
0
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:
Dean Herbert
2025-08-27 18:04:19 +09:00
Unverified
parent 043235fed2
commit 0e57ee9ba6
@@ -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;