Update APi.Username in APIAccess intead of ignoring it.

This commit is contained in:
Michael Manis 2018-01-22 01:19:22 -05:00
parent ef7e6071dd
commit 64d7868c03
3 changed files with 3 additions and 2 deletions

@ -1 +1 @@
Subproject commit 26c01ca6069296621f76d8ffbfe31ecf8074c687
Subproject commit 8f36ddab946ff538620081ede7719461d4732b79

View File

@ -126,6 +126,7 @@ namespace osu.Game.Online.API
userReq.Success += u =>
{
LocalUser.Value = u;
Username = LocalUser.Value.Username;
failureCount = 0;
//we're connected!

View File

@ -200,7 +200,7 @@ namespace osu.Game
switch (state)
{
case APIState.Online:
LocalConfig.Set(OsuSetting.Username, LocalConfig.Get<bool>(OsuSetting.SaveUsername) ? API.LocalUser.Value.Username : string.Empty);
LocalConfig.Set(OsuSetting.Username, LocalConfig.Get<bool>(OsuSetting.SaveUsername) ? API.Username : string.Empty);
break;
}
}