mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 12:33:01 +08:00
Fix OnResume
/ OnSuspending
potentially getting called before OnEntering
on a sub screen
This commit is contained in:
parent
59768c5ffd
commit
b3c2d120bf
@ -132,6 +132,8 @@ namespace osu.Game.Screens.OnlinePlay
|
||||
this.ScaleTo(1, 250, Easing.OutSine);
|
||||
|
||||
Debug.Assert(screenStack.CurrentScreen != null);
|
||||
|
||||
if (screenStack.CurrentScreen.IsCurrentScreen())
|
||||
screenStack.CurrentScreen.OnResuming(e);
|
||||
|
||||
base.OnResuming(e);
|
||||
@ -143,6 +145,8 @@ namespace osu.Game.Screens.OnlinePlay
|
||||
this.FadeOut(250);
|
||||
|
||||
Debug.Assert(screenStack.CurrentScreen != null);
|
||||
|
||||
if (screenStack.CurrentScreen.IsCurrentScreen())
|
||||
screenStack.CurrentScreen.OnSuspending(e);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user