mirror of
https://github.com/ppy/osu.git
synced 2025-02-13 15:03:13 +08:00
move api state check to it's own clause
This commit is contained in:
parent
3435e2a8d3
commit
a67a2899a9
@ -135,11 +135,11 @@ namespace osu.Game.Screens.Menu
|
||||
track.Seek(metadata.PreviewTime != -1 ? metadata.PreviewTime : 0.4f * track.Length);
|
||||
track.Start();
|
||||
}
|
||||
|
||||
if (api?.State == APIState.Offline)
|
||||
login?.ToggleVisibility();
|
||||
}
|
||||
|
||||
if (last is IntroScreen && api?.State == APIState.Offline)
|
||||
login?.ToggleVisibility();
|
||||
|
||||
Beatmap.ValueChanged += beatmap_ValueChanged;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user