Fix beatmap leaderboards requiring supporter when signed out

This commit is contained in:
Joehu 2019-07-04 12:05:07 -07:00
parent bcea807697
commit 5f6544eebf
2 changed files with 6 additions and 6 deletions

View File

@ -231,12 +231,6 @@ namespace osu.Game.Online.Leaderboards
if (getScoresRequest == null)
return;
if (api?.IsLoggedIn != true)
{
PlaceholderState = PlaceholderState.NotLoggedIn;
return;
}
getScoresRequest.Failure += e => Schedule(() =>
{
if (e is OperationCanceledException)

View File

@ -62,6 +62,12 @@ namespace osu.Game.Screens.Select.Leaderboards
return null;
}
if (api?.IsLoggedIn != true)
{
PlaceholderState = PlaceholderState.NotLoggedIn;
return null;
}
if (Beatmap?.OnlineBeatmapID == null)
{
PlaceholderState = PlaceholderState.Unavailable;