mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 04:13:00 +08:00
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 @@ 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(() =>
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user