mirror of
https://github.com/ppy/osu
synced 2025-01-05 13:50:03 +00: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 ScheduledDelegate showScoresDelegate;
|
||||||
private CancellationTokenSource showScoresCancellationSource;
|
private CancellationTokenSource showScoresCancellationSource;
|
||||||
|
|
||||||
private bool scoresLoadedOnce;
|
|
||||||
|
|
||||||
private APIRequest getScoresRequest;
|
private APIRequest getScoresRequest;
|
||||||
private ScheduledDelegate getScoresRequestCallback;
|
private ScheduledDelegate getScoresRequestCallback;
|
||||||
|
|
||||||
@ -65,8 +63,6 @@ namespace osu.Game.Online.Leaderboards
|
|||||||
{
|
{
|
||||||
scores = value;
|
scores = value;
|
||||||
|
|
||||||
scoresLoadedOnce = true;
|
|
||||||
|
|
||||||
scrollFlow?.FadeOut(fade_duration, Easing.OutQuint).Expire();
|
scrollFlow?.FadeOut(fade_duration, Easing.OutQuint).Expire();
|
||||||
scrollFlow = null;
|
scrollFlow = null;
|
||||||
|
|
||||||
@ -230,10 +226,6 @@ namespace osu.Game.Online.Leaderboards
|
|||||||
|
|
||||||
private void refetchScores()
|
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();
|
cancelPendingWork();
|
||||||
|
|
||||||
PlaceholderState = PlaceholderState.Retrieving;
|
PlaceholderState = PlaceholderState.Retrieving;
|
||||||
|
Loading…
Reference in New Issue
Block a user