1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 14:03:21 +08:00

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

View File

@ -371,8 +371,11 @@ namespace osu.Game.Screens.OnlinePlay.Match
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(() =>
{