1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-05 02:53:21 +08:00

Use switch

This commit is contained in:
Bartłomiej Dach 2024-11-28 14:04:39 +01:00
parent 2e6f43a75d
commit ac2c4e81c7
No known key found for this signature in database

View File

@ -83,8 +83,14 @@ namespace osu.Game.Screens.OnlinePlay.Playlists
private void onRoomChanged(object? sender, PropertyChangedEventArgs e)
{
if (e.PropertyName == nameof(Room.Status) || e.PropertyName == nameof(Room.Host) || e.PropertyName == nameof(Room.StartDate))
updateState();
switch (e.PropertyName)
{
case nameof(Room.Status):
case nameof(Room.Host):
case nameof(Room.StartDate):
updateState();
break;
}
}
private void updateState()