mirror of
https://github.com/ppy/osu
synced 2025-01-20 13:00:54 +00:00
Update APi.Username in APIAccess intead of ignoring it.
This commit is contained in:
parent
ef7e6071dd
commit
64d7868c03
@ -1 +1 @@
|
||||
Subproject commit 26c01ca6069296621f76d8ffbfe31ecf8074c687
|
||||
Subproject commit 8f36ddab946ff538620081ede7719461d4732b79
|
@ -126,6 +126,7 @@ namespace osu.Game.Online.API
|
||||
userReq.Success += u =>
|
||||
{
|
||||
LocalUser.Value = u;
|
||||
Username = LocalUser.Value.Username;
|
||||
failureCount = 0;
|
||||
|
||||
//we're connected!
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user