mirror of
https://github.com/ppy/osu.git
synced 2024-12-05 10:45:36 +08:00
Use switch
This commit is contained in:
parent
2e6f43a75d
commit
ac2c4e81c7
@ -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))
|
||||
switch (e.PropertyName)
|
||||
{
|
||||
case nameof(Room.Status):
|
||||
case nameof(Room.Host):
|
||||
case nameof(Room.StartDate):
|
||||
updateState();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
private void updateState()
|
||||
|
Loading…
Reference in New Issue
Block a user