Flash discard changes dialog popup when force quitting room/playlist creation with changes

This commit is contained in:
Joseph Madamba 2023-09-28 16:48:29 -07:00
parent 841142b6cc
commit 9e90374a90
1 changed files with 4 additions and 1 deletions

View File

@ -371,8 +371,11 @@ private bool ensureExitConfirmed()
return true; return true;
// if the dialog is already displayed, block exiting until the user explicitly makes a decision. // 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; return false;
}
dialogOverlay.Push(new ConfirmDiscardChangesDialog(() => dialogOverlay.Push(new ConfirmDiscardChangesDialog(() =>
{ {