1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 20:47:51 +08:00

Fix unranked beatmap leaderboards showing "no records" placeholder

This commit is contained in:
Joehu 2019-07-04 21:19:51 -07:00
parent 0ec01f7b0f
commit e8168037f9

View File

@ -68,10 +68,14 @@ namespace osu.Game.Screens.Select.Leaderboards
return null;
}
if (Beatmap?.OnlineBeatmapID == null)
switch (Beatmap?.Status)
{
PlaceholderState = PlaceholderState.Unavailable;
return null;
case BeatmapSetOnlineStatus.Graveyard:
case BeatmapSetOnlineStatus.None:
case BeatmapSetOnlineStatus.Pending:
case BeatmapSetOnlineStatus.WIP:
PlaceholderState = PlaceholderState.Unavailable;
return null;
}
if (Scope != BeatmapLeaderboardScope.Global && !api.LocalUser.Value.IsSupporter)