diff --git a/osu.Game/Online/API/APIAccess.cs b/osu.Game/Online/API/APIAccess.cs index c4b679fc92..e56e4efe24 100644 --- a/osu.Game/Online/API/APIAccess.cs +++ b/osu.Game/Online/API/APIAccess.cs @@ -34,7 +34,7 @@ public class APIAccess : IUpdateable public string Password; - public Bindable LocalUser = new Bindable(); + public Bindable LocalUser = new Bindable(createGustUser()); public string Token { @@ -295,8 +295,15 @@ public void Logout() clearCredentials(); authentication.Clear(); State = APIState.Offline; + LocalUser.Value = createGustUser(); } + private static User createGustUser() => new User + { + Username = @"Guest", + Id = 1, + }; + public void Update() { Scheduler.Update();