1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-18 14:10:33 +08:00

only check IsLoggedIn after requesting scores

This commit is contained in:
LeNitrous
2019-03-05 17:34:23 +08:00
Unverified
parent d66b0e3039
commit 8ad258f426
+6 -6
View File
@@ -213,12 +213,6 @@ namespace osu.Game.Online.Leaderboards
pendingUpdateScores?.Cancel();
pendingUpdateScores = Schedule(() =>
{
if (api?.IsLoggedIn != true)
{
PlaceholderState = PlaceholderState.NotLoggedIn;
return;
}
PlaceholderState = PlaceholderState.Retrieving;
loading.Show();
@@ -231,6 +225,12 @@ 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)