mirror of
https://github.com/ppy/osu.git
synced 2026-05-27 21:03:27 +08: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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user