mirror of
https://github.com/ppy/osu.git
synced 2024-12-16 05:42:54 +08:00
Fix ready button remaining enabled for expired items
This commit is contained in:
parent
02efe24e39
commit
aad4b8ff80
@ -106,7 +106,10 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer.Match
|
||||
break;
|
||||
}
|
||||
|
||||
bool enableButton = Room?.State == MultiplayerRoomState.Open && !operationInProgress.Value;
|
||||
bool enableButton =
|
||||
Room?.State == MultiplayerRoomState.Open
|
||||
&& Client.CurrentMatchPlayingItem.Value?.Expired == false
|
||||
&& !operationInProgress.Value;
|
||||
|
||||
// When the local user is the host and spectating the match, the "start match" state should be enabled if any users are ready.
|
||||
if (localUser?.State == MultiplayerUserState.Spectating)
|
||||
|
Loading…
Reference in New Issue
Block a user