mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 10:12:54 +08:00
Remove scoresLoadedOnce
weirdness
This commit is contained in:
parent
661fec7c8a
commit
a700ad3849
@ -44,8 +44,6 @@ namespace osu.Game.Online.Leaderboards
|
||||
private ScheduledDelegate showScoresDelegate;
|
||||
private CancellationTokenSource showScoresCancellationSource;
|
||||
|
||||
private bool scoresLoadedOnce;
|
||||
|
||||
private APIRequest getScoresRequest;
|
||||
private ScheduledDelegate getScoresRequestCallback;
|
||||
|
||||
@ -65,8 +63,6 @@ namespace osu.Game.Online.Leaderboards
|
||||
{
|
||||
scores = value;
|
||||
|
||||
scoresLoadedOnce = true;
|
||||
|
||||
scrollFlow?.FadeOut(fade_duration, Easing.OutQuint).Expire();
|
||||
scrollFlow = null;
|
||||
|
||||
@ -230,10 +226,6 @@ namespace osu.Game.Online.Leaderboards
|
||||
|
||||
private void refetchScores()
|
||||
{
|
||||
// don't display any scores or placeholder until the first Scores_Set has been called.
|
||||
// this avoids scope changes flickering a "no scores" placeholder before initialisation of song select is finished.
|
||||
if (!scoresLoadedOnce) return;
|
||||
|
||||
cancelPendingWork();
|
||||
|
||||
PlaceholderState = PlaceholderState.Retrieving;
|
||||
|
Loading…
Reference in New Issue
Block a user