mirror of
https://github.com/ppy/osu.git
synced 2024-11-13 22:47:26 +08:00
Fix unranked beatmap leaderboards showing "no records" placeholder
This commit is contained in:
parent
0ec01f7b0f
commit
e8168037f9
@ -68,10 +68,14 @@ namespace osu.Game.Screens.Select.Leaderboards
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Beatmap?.OnlineBeatmapID == null)
|
switch (Beatmap?.Status)
|
||||||
{
|
{
|
||||||
PlaceholderState = PlaceholderState.Unavailable;
|
case BeatmapSetOnlineStatus.Graveyard:
|
||||||
return null;
|
case BeatmapSetOnlineStatus.None:
|
||||||
|
case BeatmapSetOnlineStatus.Pending:
|
||||||
|
case BeatmapSetOnlineStatus.WIP:
|
||||||
|
PlaceholderState = PlaceholderState.Unavailable;
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Scope != BeatmapLeaderboardScope.Global && !api.LocalUser.Value.IsSupporter)
|
if (Scope != BeatmapLeaderboardScope.Global && !api.LocalUser.Value.IsSupporter)
|
||||||
|
Loading…
Reference in New Issue
Block a user