mirror of
https://github.com/osukey/osukey.git
synced 2025-05-29 09:27:18 +09: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;
|
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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user