mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 13:37:25 +08:00
Change early return to check for online State
instead of IsLoggedIn
This commit is contained in:
parent
5514a53df1
commit
ec7b82f5e8
@ -19,6 +19,7 @@ using osu.Game.Graphics.Cursor;
|
||||
using osu.Game.Graphics.Sprites;
|
||||
using osu.Game.Graphics.UserInterface;
|
||||
using osu.Game.Online;
|
||||
using osu.Game.Online.API;
|
||||
using osu.Game.Online.API.Requests;
|
||||
using osu.Game.Online.API.Requests.Responses;
|
||||
using osu.Game.Overlays.Profile;
|
||||
@ -170,7 +171,7 @@ namespace osu.Game.Overlays
|
||||
|
||||
sectionsContainer.ScrollToTop();
|
||||
|
||||
if (!API.IsLoggedIn)
|
||||
if (API.State.Value != APIState.Online)
|
||||
return;
|
||||
|
||||
userReq = user.OnlineID > 1 ? new GetUserRequest(user.OnlineID, ruleset) : new GetUserRequest(user.Username, ruleset);
|
||||
|
Loading…
Reference in New Issue
Block a user