mirror of
https://github.com/ppy/osu
synced 2024-12-13 18:37:04 +00:00
Disable spectate button on closed rooms
Doesn't have an effect normally - only for safety purposes in case we allow entering the match subscreen after a match has finished in the future.
This commit is contained in:
parent
fd0b030cf4
commit
4aceb75eb2
@ -81,7 +81,7 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer.Match
|
||||
break;
|
||||
}
|
||||
|
||||
button.Enabled.Value = !operationInProgress.Value;
|
||||
button.Enabled.Value = Client.Room?.State != MultiplayerRoomState.Closed && !operationInProgress.Value;
|
||||
}
|
||||
|
||||
private class ButtonWithTrianglesExposed : TriangleButton
|
||||
|
Loading…
Reference in New Issue
Block a user