1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-30 13:30:57 +08:00

Update APi.Username in APIAccess intead of ignoring it.

This commit is contained in:
Michael Manis
2018-01-22 01:19:22 -05:00
Unverified
parent ef7e6071dd
commit 64d7868c03
3 changed files with 3 additions and 2 deletions
+1
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!
+1 -1
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;
}
}