mirror of https://github.com/ppy/osu
Flash discard changes dialog popup when force quitting room/playlist creation with changes
This commit is contained in:
parent
841142b6cc
commit
9e90374a90
|
@ -371,8 +371,11 @@ private bool ensureExitConfirmed()
|
|||
return true;
|
||||
|
||||
// if the dialog is already displayed, block exiting until the user explicitly makes a decision.
|
||||
if (dialogOverlay.CurrentDialog is ConfirmDiscardChangesDialog)
|
||||
if (dialogOverlay.CurrentDialog is ConfirmDiscardChangesDialog discardChangesDialog)
|
||||
{
|
||||
discardChangesDialog.Flash();
|
||||
return false;
|
||||
}
|
||||
|
||||
dialogOverlay.Push(new ConfirmDiscardChangesDialog(() =>
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue