1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 09:27:29 +08:00

run stateChanged upon unhiding of GameplayScreen

This commit is contained in:
Dao Heng Liu 2023-07-23 12:01:58 +01:00
parent 5a568eacb6
commit 7813a3162b
No known key found for this signature in database
GPG Key ID: 76B315615CDDAFDE

View File

@ -234,17 +234,17 @@ namespace osu.Game.Tournament.Screens.Gameplay
public override void Hide()
{
if (scheduledOperation != null)
{
scheduledOperation.Cancel();
if (State.Value == TourneyState.Ranking)
contract();
}
scheduledOperation?.Cancel();
base.Hide();
}
public override void Show()
{
stateChanged(new ValueChangedEvent<TourneyState>(TourneyState.Idle, State.Value));
base.Show();
}
private partial class ChromaArea : CompositeDrawable
{
[Resolved]