Fix ready button remaining enabled for expired items

This commit is contained in:
Dan Balasescu 2021-11-10 18:42:46 +09:00
parent 02efe24e39
commit aad4b8ff80

View File

@ -106,7 +106,10 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer.Match
break; 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. // 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) if (localUser?.State == MultiplayerUserState.Spectating)