mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 04:53:21 +08:00
Handle collection changed event
This commit is contained in:
parent
7ee81669f7
commit
ee4bca9ed1
@ -127,6 +127,14 @@ namespace osu.Game.Screens.Spectate
|
|||||||
foreach (var (userId, _) in e.OldItems.AsNonNull())
|
foreach (var (userId, _) in e.OldItems.AsNonNull())
|
||||||
onUserStateRemoved(userId);
|
onUserStateRemoved(userId);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case NotifyDictionaryChangedAction.Replace:
|
||||||
|
foreach (var (userId, _) in e.OldItems.AsNonNull())
|
||||||
|
onUserStateRemoved(userId);
|
||||||
|
|
||||||
|
foreach (var (userId, state) in e.NewItems.AsNonNull())
|
||||||
|
onUserStateAdded(userId, state);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user