1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 10:18:22 +08:00

Merge pull request #4802 from peppy/fix-logo-tracking-crash

Fix crash on switching from main menu to gameplay too fast
This commit is contained in:
Dan Balasescu 2019-05-17 22:29:07 +09:00 committed by GitHub
commit e53a09d219
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -155,9 +155,11 @@ namespace osu.Game.Screens.Menu
protected override void LogoSuspending(OsuLogo logo) protected override void LogoSuspending(OsuLogo logo)
{ {
logo.FadeOut(300, Easing.InSine) var seq = logo.FadeOut(300, Easing.InSine)
.ScaleTo(0.2f, 300, Easing.InSine) .ScaleTo(0.2f, 300, Easing.InSine);
.OnComplete(l => buttons.SetOsuLogo(null));
seq.OnComplete(_ => buttons.SetOsuLogo(null));
seq.OnAbort(_ => buttons.SetOsuLogo(null));
} }
private void beatmap_ValueChanged(ValueChangedEvent<WorkingBeatmap> e) private void beatmap_ValueChanged(ValueChangedEvent<WorkingBeatmap> e)