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:
parent
5a568eacb6
commit
7813a3162b
@ -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]
|
||||||
|
Loading…
Reference in New Issue
Block a user