From 9e90374a904b182eaf5e1020809fc09dab667d48 Mon Sep 17 00:00:00 2001 From: Joseph Madamba Date: Thu, 28 Sep 2023 16:48:29 -0700 Subject: [PATCH] Flash discard changes dialog popup when force quitting room/playlist creation with changes --- osu.Game/Screens/OnlinePlay/Match/RoomSubScreen.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/osu.Game/Screens/OnlinePlay/Match/RoomSubScreen.cs b/osu.Game/Screens/OnlinePlay/Match/RoomSubScreen.cs index b8887b3161..2cd8e45d28 100644 --- a/osu.Game/Screens/OnlinePlay/Match/RoomSubScreen.cs +++ b/osu.Game/Screens/OnlinePlay/Match/RoomSubScreen.cs @@ -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(() => {