mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 23:24:04 +09:00
Invert if
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user