1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-10 22:17:20 +08:00

Fix loading spinners not hiding correctly

This commit is contained in:
Dan Balasescu 2025-02-25 23:17:23 +09:00
parent bb457ca8e2
commit baf20d8484
No known key found for this signature in database

View File

@ -135,10 +135,6 @@ namespace osu.Game.Screens.OnlinePlay.Playlists
{
return await fetchScoresAround().ConfigureAwait(false);
}
finally
{
Schedule(() => hideLoadingSpinners());
}
}
protected override async Task<ScoreInfo[]> FetchNextPage(int direction)
@ -196,10 +192,6 @@ namespace osu.Game.Screens.OnlinePlay.Playlists
{
return [];
}
finally
{
Schedule(() => hideLoadingSpinners(pivot));
}
}
/// <summary>
@ -228,14 +220,13 @@ namespace osu.Game.Screens.OnlinePlay.Playlists
.ToArray();
}
private void hideLoadingSpinners(MultiplayerScores? pivot = null)
protected override void OnScoresAdded(ScoreInfo[] scores)
{
CentreSpinner.Hide();
base.OnScoresAdded(scores);
if (pivot == lowerScores)
RightSpinner.Hide();
else if (pivot == higherScores)
LeftSpinner.Hide();
CentreSpinner.Hide();
RightSpinner.Hide();
LeftSpinner.Hide();
}
/// <summary>