From 49f5d6813ec82dec79ef02e8b380fde4cc7a44d8 Mon Sep 17 00:00:00 2001 From: Joseph Madamba Date: Fri, 4 Aug 2023 22:05:59 -0700 Subject: [PATCH] Block beatmap editor from testing/exiting/exporting when saving fails --- osu.Game/Screens/Edit/Editor.cs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/osu.Game/Screens/Edit/Editor.cs b/osu.Game/Screens/Edit/Editor.cs index b885eee46f..35d8bb4ab7 100644 --- a/osu.Game/Screens/Edit/Editor.cs +++ b/osu.Game/Screens/Edit/Editor.cs @@ -425,7 +425,8 @@ namespace osu.Game.Screens.Edit { dialogOverlay.Push(new SaveBeforeGameplayTestDialog(() => { - Save(); + if (!Save()) return; + pushEditorPlayer(); })); } @@ -764,7 +765,7 @@ namespace osu.Game.Screens.Edit private void confirmExitWithSave() { - Save(); + if (!Save()) return; ExitConfirmed = true; this.Exit(); @@ -1021,13 +1022,15 @@ namespace osu.Game.Screens.Edit private void exportBeatmap() { - Save(); + if (!Save()) return; + beatmapManager.Export(Beatmap.Value.BeatmapSetInfo); } private void exportLegacyBeatmap() { - Save(); + if (!Save()) return; + beatmapManager.ExportLegacy(Beatmap.Value.BeatmapSetInfo); }