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:
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.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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user