mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 00:52:57 +08:00
Revert "Fix alt-f4 being blocked in interface"
This reverts commit 752dd26a4f
.
This commit is contained in:
parent
148089f160
commit
8017788521
@ -81,8 +81,8 @@ namespace osu.Game.Screens.Menu
|
||||
{
|
||||
if (holdDelay.Value > 0)
|
||||
confirmAndExit();
|
||||
else if (!exitConfirmed && dialogOverlay != null && !(dialogOverlay.CurrentDialog is ConfirmExitDialog))
|
||||
dialogOverlay.Push(new ConfirmExitDialog(confirmAndExit, () => exitConfirmOverlay.Abort()));
|
||||
else
|
||||
this.Exit();
|
||||
}
|
||||
});
|
||||
}
|
||||
@ -253,6 +253,12 @@ namespace osu.Game.Screens.Menu
|
||||
|
||||
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;
|
||||
this.FadeOut(3000);
|
||||
return base.OnExiting(next);
|
||||
|
Loading…
Reference in New Issue
Block a user