mirror of
https://github.com/ppy/osu
synced 2025-03-11 05:49:12 +00:00
Invert if
This commit is contained in:
parent
1f41acc5b9
commit
796223d3e0
@ -249,14 +249,16 @@ namespace osu.Game.Screens.Menu
|
||||
{
|
||||
if (!exitConfirmed && dialogOverlay != null)
|
||||
{
|
||||
if (!(dialogOverlay.CurrentDialog is ConfirmExitDialog))
|
||||
if (dialogOverlay.CurrentDialog is ConfirmExitDialog exitDialog)
|
||||
{
|
||||
exitConfirmed = true;
|
||||
exitDialog.Buttons.First().Click();
|
||||
}
|
||||
else
|
||||
{
|
||||
dialogOverlay.Push(new ConfirmExitDialog(confirmAndExit, () => exitConfirmOverlay.Abort()));
|
||||
return true;
|
||||
}
|
||||
|
||||
exitConfirmed = true;
|
||||
dialogOverlay.CurrentDialog.Buttons.First().Click();
|
||||
}
|
||||
|
||||
buttons.State = ButtonSystemState.Exit;
|
||||
|
Loading…
Reference in New Issue
Block a user