mirror of
https://github.com/ppy/osu.git
synced 2025-03-11 01:07:23 +08:00
Fix loading spinners not hiding correctly
This commit is contained in:
parent
bb457ca8e2
commit
baf20d8484
@ -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,13 +220,12 @@ 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)
|
||||
CentreSpinner.Hide();
|
||||
RightSpinner.Hide();
|
||||
else if (pivot == higherScores)
|
||||
LeftSpinner.Hide();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user