Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion osu.Game/Screens/SelectV2/BeatmapLeaderboardWedge.cs
Original file line number Diff line number Diff line change
Expand Up @@ -407,15 +407,27 @@ private void clearScores()

private LeaderboardState displayedState;

private ScheduledDelegate? loadingShowDelegate;

protected void SetState(LeaderboardState state)
{
if (state == displayedState)
return;

if (state == LeaderboardState.Retrieving)
loading.Show();
{
// Slight delay so this doesn't display for a few silly frames for local score retrievals.
loadingShowDelegate ??= Scheduler.AddDelayed(() => loading.Show(), 200);
}
else
{
loadingShowDelegate?.Cancel();
loadingShowDelegate = null;

loading.Hide();
}

loading.Hide();

displayedState = state;

Expand Down
Loading