1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-06 09:03:01 +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() public override void Hide()
{ {
if (scheduledOperation != null) scheduledOperation?.Cancel();
{
scheduledOperation.Cancel();
if (State.Value == TourneyState.Ranking)
contract();
}
base.Hide(); base.Hide();
} }
public override void Show()
{
stateChanged(new ValueChangedEvent<TourneyState>(TourneyState.Idle, State.Value));
base.Show();
}
private partial class ChromaArea : CompositeDrawable private partial class ChromaArea : CompositeDrawable
{ {
[Resolved] [Resolved]