mirror of
https://github.com/osukey/osukey.git
synced 2025-06-05 12:57:39 +09:00
Fix alt-f4 being blocked in interface
This commit is contained in:
parent
a69b9f1148
commit
752dd26a4f
@ -81,8 +81,8 @@ namespace osu.Game.Screens.Menu
|
|||||||
{
|
{
|
||||||
if (holdDelay.Value > 0)
|
if (holdDelay.Value > 0)
|
||||||
confirmAndExit();
|
confirmAndExit();
|
||||||
else
|
else if (!exitConfirmed && dialogOverlay != null && !(dialogOverlay.CurrentDialog is ConfirmExitDialog))
|
||||||
this.Exit();
|
dialogOverlay.Push(new ConfirmExitDialog(confirmAndExit, () => exitConfirmOverlay.Abort()));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -253,12 +253,6 @@ namespace osu.Game.Screens.Menu
|
|||||||
|
|
||||||
public override bool OnExiting(IScreen next)
|
public override bool OnExiting(IScreen next)
|
||||||
{
|
{
|
||||||
if (!exitConfirmed && dialogOverlay != null && !(dialogOverlay.CurrentDialog is ConfirmExitDialog))
|
|
||||||
{
|
|
||||||
dialogOverlay.Push(new ConfirmExitDialog(confirmAndExit, () => exitConfirmOverlay.Abort()));
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
buttons.State = ButtonSystemState.Exit;
|
buttons.State = ButtonSystemState.Exit;
|
||||||
this.FadeOut(3000);
|
this.FadeOut(3000);
|
||||||
return base.OnExiting(next);
|
return base.OnExiting(next);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user