Merge pull request #2214 from VPeruS/fix-username-login

Fixed exit from game saves username instead of email
This commit is contained in:
Dean Herbert 2018-03-14 10:08:11 +09:00 committed by GitHub
commit 586ac9c3f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View File

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

View File

@ -55,7 +55,7 @@ namespace osu.Game.Overlays.Toolbar
avatar.User = new User();
break;
case APIState.Online:
Text = api.Username;
Text = api.LocalUser.Value.Username;
avatar.User = api.LocalUser;
break;
}