mirror of
https://github.com/osukey/osukey.git
synced 2025-08-02 22:26:41 +09:00
Remove unnecessary loading
hide call from PlaceholderState_Set
and add more assertiveness
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user