mirror of
https://github.com/ppy/osu
synced 2025-01-07 06:40:05 +00:00
Fix pushEditor
function running twice on returning to loader
This commit is contained in:
parent
59aa4dabfd
commit
ddaa95a1ca
@ -34,10 +34,13 @@ namespace osu.Game.Screens.Edit
|
|||||||
{
|
{
|
||||||
base.LogoArriving(logo, resuming);
|
base.LogoArriving(logo, resuming);
|
||||||
|
|
||||||
// the push cannot happen in OnEntering() or similar (even if scheduled), because the transition from main menu will look bad.
|
if (!resuming)
|
||||||
// that is because this screen pushing the editor makes it no longer current, and OsuScreen checks if the screen is current
|
{
|
||||||
// before enqueueing this screen's LogoArriving onto the logo animation sequence.
|
// the push cannot happen in OnEntering() or similar (even if scheduled), because the transition from main menu will look bad.
|
||||||
pushEditor();
|
// that is because this screen pushing the editor makes it no longer current, and OsuScreen checks if the screen is current
|
||||||
|
// before enqueueing this screen's LogoArriving onto the logo animation sequence.
|
||||||
|
pushEditor();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void pushEditor()
|
private void pushEditor()
|
||||||
|
Loading…
Reference in New Issue
Block a user