mirror of
https://github.com/ppy/osu.git
synced 2025-02-21 22:12:53 +08:00
Merge pull request #31508 from peppy/api-startup-state
Fix replays not correctly pre-importing beatmap when arriving from a cold start
This commit is contained in:
commit
ad14720714
@ -112,8 +112,14 @@ namespace osu.Game.Online.API
|
||||
|
||||
config.BindWith(OsuSetting.UserOnlineStatus, configStatus);
|
||||
|
||||
// Early call to ensure the local user / "logged in" state is correct immediately.
|
||||
setPlaceholderLocalUser();
|
||||
if (HasLogin)
|
||||
{
|
||||
// Early call to ensure the local user / "logged in" state is correct immediately.
|
||||
setPlaceholderLocalUser();
|
||||
|
||||
// This is required so that Queue() requests during startup sequence don't fail due to "not logged in".
|
||||
state.Value = APIState.Connecting;
|
||||
}
|
||||
|
||||
localUser.BindValueChanged(u =>
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user