mirror of
https://github.com/ppy/osu
synced 2025-01-09 23:59:44 +00:00
Improve ScoresContainer
loading overlay logic to work better with tests
This commit is contained in:
parent
e83c83a5e8
commit
51ade3251d
@ -65,6 +65,9 @@ namespace osu.Game.Overlays.BeatmapSet.Scores
|
||||
scoreTable.ClearScores();
|
||||
scoreTable.Hide();
|
||||
|
||||
loading.Hide();
|
||||
loading.FinishTransforms();
|
||||
|
||||
if (value?.Scores.Any() != true)
|
||||
return;
|
||||
|
||||
@ -258,9 +261,6 @@ namespace osu.Game.Overlays.BeatmapSet.Scores
|
||||
{
|
||||
Scores = null;
|
||||
notSupporterPlaceholder.Show();
|
||||
|
||||
loading.Hide();
|
||||
loading.FinishTransforms();
|
||||
return;
|
||||
}
|
||||
|
||||
@ -272,9 +272,6 @@ namespace osu.Game.Overlays.BeatmapSet.Scores
|
||||
getScoresRequest = new GetScoresRequest(Beatmap.Value, Beatmap.Value.Ruleset, scope.Value, modSelector.SelectedMods);
|
||||
getScoresRequest.Success += scores =>
|
||||
{
|
||||
loading.Hide();
|
||||
loading.FinishTransforms();
|
||||
|
||||
Scores = scores;
|
||||
|
||||
if (!scores.Scores.Any())
|
||||
|
Loading…
Reference in New Issue
Block a user