Merge pull request #4675 from nyquillerium/playerloader-tracking

Prevent PlayerLoader from tracking the logo after it has been exited.
This commit is contained in:
Dean Herbert 2019-04-26 13:21:13 +09:00 committed by GitHub
commit a680a38e81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -163,7 +163,11 @@ protected override void LogoArriving(OsuLogo logo, bool resuming)
logo.ScaleTo(new Vector2(0.15f), duration, Easing.In);
logo.FadeIn(350);
Scheduler.AddDelayed(() => { content.StartTracking(logo, resuming ? 0 : 500, Easing.InOutExpo); }, resuming ? 0 : 500);
Scheduler.AddDelayed(() =>
{
if (this.IsCurrentScreen())
content.StartTracking(logo, resuming ? 0 : 500, Easing.InOutExpo);
}, resuming ? 0 : 500);
}
protected override void LogoExiting(OsuLogo logo)