mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 15:44:04 +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)
|
if (value == placeholderState)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
loading.Hide();
|
placeholderState = value;
|
||||||
|
|
||||||
switch (placeholderState = value)
|
Debug.Assert(placeholderState != PlaceholderState.Successful || scores?.Any() == true);
|
||||||
|
|
||||||
|
switch (placeholderState)
|
||||||
{
|
{
|
||||||
case PlaceholderState.NetworkFailure:
|
case PlaceholderState.NetworkFailure:
|
||||||
replacePlaceholder(new ClickablePlaceholder(@"Couldn't fetch scores!", FontAwesome.Solid.Sync)
|
replacePlaceholder(new ClickablePlaceholder(@"Couldn't fetch scores!", FontAwesome.Solid.Sync)
|
||||||
|
Reference in New Issue
Block a user