mirror of
https://github.com/ppy/osu.git
synced 2025-01-18 11:02:57 +08:00
Revert name change
This commit is contained in:
parent
3523a2fe61
commit
91fa2e70d8
@ -115,7 +115,7 @@ namespace osu.Game.Online.API
|
||||
if (HasLogin)
|
||||
{
|
||||
// Early call to ensure the local user / "logged in" state is correct immediately.
|
||||
prepareForConnect();
|
||||
setPlaceholderLocalUser();
|
||||
|
||||
// This is required so that Queue() requests during startup sequence don't fail due to "not logged in".
|
||||
state.Value = APIState.Connecting;
|
||||
@ -258,7 +258,7 @@ namespace osu.Game.Online.API
|
||||
/// <returns>Whether the connection attempt was successful.</returns>
|
||||
private void attemptConnect()
|
||||
{
|
||||
Scheduler.Add(prepareForConnect, false);
|
||||
Scheduler.Add(setPlaceholderLocalUser, false);
|
||||
|
||||
// save the username at this point, if the user requested for it to be.
|
||||
config.SetValue(OsuSetting.Username, config.Get<bool>(OsuSetting.SaveUsername) ? ProvidedUsername : string.Empty);
|
||||
@ -374,7 +374,7 @@ namespace osu.Game.Online.API
|
||||
/// This is useful for storing local scores and showing a placeholder username after starting the game,
|
||||
/// until a valid connection has been established.
|
||||
/// </summary>
|
||||
private void prepareForConnect()
|
||||
private void setPlaceholderLocalUser()
|
||||
{
|
||||
if (!localUser.IsDefault)
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user