mirror of
https://github.com/ppy/osu.git
synced 2025-02-23 08:32:55 +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,9 +112,15 @@ namespace osu.Game.Online.API
|
|||||||
|
|
||||||
config.BindWith(OsuSetting.UserOnlineStatus, configStatus);
|
config.BindWith(OsuSetting.UserOnlineStatus, configStatus);
|
||||||
|
|
||||||
|
if (HasLogin)
|
||||||
|
{
|
||||||
// Early call to ensure the local user / "logged in" state is correct immediately.
|
// Early call to ensure the local user / "logged in" state is correct immediately.
|
||||||
setPlaceholderLocalUser();
|
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 =>
|
localUser.BindValueChanged(u =>
|
||||||
{
|
{
|
||||||
u.OldValue?.Activity.UnbindFrom(activity);
|
u.OldValue?.Activity.UnbindFrom(activity);
|
||||||
|
Loading…
Reference in New Issue
Block a user