1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-25 17:49:57 +08:00

Merge pull request #24962 from Joehuu/flash-discard-playlist-dialog

This commit is contained in:
Dean Herbert
2023-09-29 09:54:33 +09:00
committed by GitHub
Unverified
@@ -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(() =>
{