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);
|
return await fetchScoresAround().ConfigureAwait(false);
|
||||||
}
|
}
|
||||||
finally
|
|
||||||
{
|
|
||||||
Schedule(() => hideLoadingSpinners());
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override async Task<ScoreInfo[]> FetchNextPage(int direction)
|
protected override async Task<ScoreInfo[]> FetchNextPage(int direction)
|
||||||
@ -196,10 +192,6 @@ namespace osu.Game.Screens.OnlinePlay.Playlists
|
|||||||
{
|
{
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
finally
|
|
||||||
{
|
|
||||||
Schedule(() => hideLoadingSpinners(pivot));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -228,14 +220,13 @@ namespace osu.Game.Screens.OnlinePlay.Playlists
|
|||||||
.ToArray();
|
.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();
|
RightSpinner.Hide();
|
||||||
else if (pivot == higherScores)
|
LeftSpinner.Hide();
|
||||||
LeftSpinner.Hide();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user