diff --git a/osu.Game/Overlays/BeatmapSet/Scores/ScoresContainer.cs b/osu.Game/Overlays/BeatmapSet/Scores/ScoresContainer.cs index 679e36971c..2bbfa0f56a 100644 --- a/osu.Game/Overlays/BeatmapSet/Scores/ScoresContainer.cs +++ b/osu.Game/Overlays/BeatmapSet/Scores/ScoresContainer.cs @@ -105,22 +105,16 @@ namespace osu.Game.Overlays.BeatmapSet.Scores flow.Clear(); if (scoresAmount < 2) - { - IsLoading = false; return; - } for (int i = 1; i < scoresAmount; i++) flow.Add(new DrawableScore(i, scores.ElementAt(i))); - - IsLoading = false; } public void CleanAllScores() { topScore.Hide(); flow.Clear(); - IsLoading = false; } } } diff --git a/osu.Game/Overlays/BeatmapSetOverlay.cs b/osu.Game/Overlays/BeatmapSetOverlay.cs index 480808ee54..51be30b120 100644 --- a/osu.Game/Overlays/BeatmapSetOverlay.cs +++ b/osu.Game/Overlays/BeatmapSetOverlay.cs @@ -92,8 +92,6 @@ namespace osu.Game.Overlays private void updateScores(BeatmapInfo beatmap) { - scores.IsLoading = true; - getScoresRequest?.Cancel(); if (!beatmap.OnlineBeatmapID.HasValue) @@ -102,9 +100,14 @@ namespace osu.Game.Overlays return; } - getScoresRequest = new GetScoresRequest(beatmap); - getScoresRequest.Success += r => scores.Scores = r.Scores; + scores.IsLoading = true; + getScoresRequest = new GetScoresRequest(beatmap); + getScoresRequest.Success += r => + { + scores.Scores = r.Scores; + scores.IsLoading = false; + }; api.Queue(getScoresRequest); }