1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-20 19:40:38 +08:00

Merge branch 'master' into editor-clipboard

This commit is contained in:
Dean Herbert
2020-09-11 20:35:05 +09:00
Unverified
+1 -1
View File
@@ -403,7 +403,7 @@ namespace osu.Game.Screens.Edit
public override bool OnExiting(IScreen next)
{
if (!exitConfirmed && dialogOverlay != null && HasUnsavedChanges)
if (!exitConfirmed && dialogOverlay != null && HasUnsavedChanges && !(dialogOverlay.CurrentDialog is PromptForSaveDialog))
{
dialogOverlay?.Push(new PromptForSaveDialog(confirmExit, confirmExitWithSave));
return true;