mirror of
https://github.com/ppy/osu
synced 2024-12-13 18:37:04 +00:00
Remove unnecessary loading
hide call from PlaceholderState_Set
and add more assertiveness
This commit is contained in:
parent
51acf79935
commit
3d771c0fc7
@ -241,9 +241,11 @@ namespace osu.Game.Online.Leaderboards
|
||||
if (value == placeholderState)
|
||||
return;
|
||||
|
||||
loading.Hide();
|
||||
placeholderState = value;
|
||||
|
||||
switch (placeholderState = value)
|
||||
Debug.Assert(placeholderState != PlaceholderState.Successful || scores?.Any() == true);
|
||||
|
||||
switch (placeholderState)
|
||||
{
|
||||
case PlaceholderState.NetworkFailure:
|
||||
replacePlaceholder(new ClickablePlaceholder(@"Couldn't fetch scores!", FontAwesome.Solid.Sync)
|
||||
|
Loading…
Reference in New Issue
Block a user