mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 05:32:54 +08:00
adjust DummyAPIAccess to more closely match APIAccess
wrt logging in and out
This commit is contained in:
parent
6de7328fef
commit
21bed336c6
@ -34,7 +34,7 @@ namespace osu.Game.Online.API
|
||||
|
||||
public string AccessToken => "token";
|
||||
|
||||
public bool IsLoggedIn => State.Value == APIState.Online;
|
||||
public bool IsLoggedIn => State.Value > APIState.Offline;
|
||||
|
||||
public string ProvidedUsername => LocalUser.Value.Username;
|
||||
|
||||
@ -114,8 +114,8 @@ namespace osu.Game.Online.API
|
||||
|
||||
public void Logout()
|
||||
{
|
||||
LocalUser.Value = new GuestUser();
|
||||
state.Value = APIState.Offline;
|
||||
LocalUser.Value = new GuestUser();
|
||||
}
|
||||
|
||||
public IHubClientConnector GetHubConnector(string clientName, string endpoint, bool preferMessagePack) => null;
|
||||
|
Loading…
Reference in New Issue
Block a user