1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-13 18:32:55 +08:00

move api state check to it's own clause

This commit is contained in:
LeNitrous 2019-09-08 16:18:15 +08:00
parent 3435e2a8d3
commit a67a2899a9

View File

@ -135,11 +135,11 @@ namespace osu.Game.Screens.Menu
track.Seek(metadata.PreviewTime != -1 ? metadata.PreviewTime : 0.4f * track.Length); track.Seek(metadata.PreviewTime != -1 ? metadata.PreviewTime : 0.4f * track.Length);
track.Start(); track.Start();
} }
if (api?.State == APIState.Offline)
login?.ToggleVisibility();
} }
if (last is IntroScreen && api?.State == APIState.Offline)
login?.ToggleVisibility();
Beatmap.ValueChanged += beatmap_ValueChanged; Beatmap.ValueChanged += beatmap_ValueChanged;
} }