Merge pull request #2270 from peppy/fix-player-loader

Fix retry not allowing continuing beyond PlayerLoader
This commit is contained in:
Dean Herbert 2018-03-22 20:09:57 +09:00 committed by GitHub
commit ff41ad976b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 3 deletions

@ -1 +1 @@
Subproject commit 241133f0a65326a563ba23b7166167a882d1d5cb
Subproject commit d8d4f55e10ac553223db75874bae6ae4894b739a

View File

@ -139,8 +139,7 @@ namespace osu.Game.Screens.Play
{
// as the pushDebounce below has a delay, we need to keep checking and cancel a future debounce
// if we become unready for push during the delay.
pushDebounce?.Cancel();
pushDebounce = null;
cancelLoad();
return;
}
@ -172,10 +171,23 @@ namespace osu.Game.Screens.Play
}
}
private void cancelLoad()
{
pushDebounce?.Cancel();
pushDebounce = null;
}
protected override void OnSuspending(Screen next)
{
base.OnSuspending(next);
cancelLoad();
}
protected override bool OnExiting(Screen next)
{
Content.ScaleTo(0.7f, 150, Easing.InQuint);
this.FadeOut(150);
cancelLoad();
return base.OnExiting(next);
}