mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 08:33:21 +08:00
Change APIAccess.IsLoggedIn
to also return true
when connecting
All usages of this are made with the intention of showing data when an api is going to eventually become available. In the case of a login failure, components are also able to display a correct state. With this change, it makes online components display in a more correct state during startup or initial logging in phase.
This commit is contained in:
parent
beb3d41f0c
commit
f9d0cc3c4e
@ -402,7 +402,7 @@ namespace osu.Game.Online.API
|
||||
}
|
||||
}
|
||||
|
||||
public bool IsLoggedIn => localUser.Value.Id > 1; // TODO: should this also be true if attempting to connect?
|
||||
public bool IsLoggedIn => State.Value > APIState.Offline;
|
||||
|
||||
public void Queue(APIRequest request)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user