1
0
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:
Dan Balasescu 2025-01-14 22:43:08 +09:00 committed by GitHub
commit ad14720714
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 =>
{