mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 05:22:54 +08:00
Fix leaderboard loading spinner disappearing too early
This commit is contained in:
parent
4dd6594547
commit
bbef7ff720
@ -56,13 +56,14 @@ namespace osu.Game.Online.Leaderboards
|
||||
scrollFlow?.FadeOut(fade_duration, Easing.OutQuint).Expire();
|
||||
scrollFlow = null;
|
||||
|
||||
loading.Hide();
|
||||
|
||||
showScoresDelegate?.Cancel();
|
||||
showScoresCancellationSource?.Cancel();
|
||||
|
||||
if (scores == null || !scores.Any())
|
||||
{
|
||||
loading.Hide();
|
||||
return;
|
||||
}
|
||||
|
||||
// ensure placeholder is hidden when displaying scores
|
||||
PlaceholderState = PlaceholderState.Successful;
|
||||
@ -84,6 +85,7 @@ namespace osu.Game.Online.Leaderboards
|
||||
}
|
||||
|
||||
scrollContainer.ScrollTo(0f, false);
|
||||
loading.Hide();
|
||||
}, (showScoresCancellationSource = new CancellationTokenSource()).Token));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user