mirror of
https://github.com/ppy/osu.git
synced 2025-01-30 01:32:55 +08:00
Fix startup crash if main menu does not load fast enough
This commit is contained in:
parent
fbd9ebf02d
commit
f26fe53feb
@ -28,7 +28,7 @@ namespace osu.Game.Screens.Menu
|
|||||||
{
|
{
|
||||||
private ButtonSystem buttons;
|
private ButtonSystem buttons;
|
||||||
|
|
||||||
public override bool HideOverlaysOnEnter => buttons.State == ButtonSystemState.Initial;
|
public override bool HideOverlaysOnEnter => buttons == null || buttons.State == ButtonSystemState.Initial;
|
||||||
|
|
||||||
protected override bool AllowBackButton => buttons.State != ButtonSystemState.Initial && host.CanExit;
|
protected override bool AllowBackButton => buttons.State != ButtonSystemState.Initial && host.CanExit;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user