1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-25 03:09:54 +08:00

Block beatmap editor from testing/exiting/exporting when saving fails

This commit is contained in:
Joseph Madamba
2023-08-04 22:05:59 -07:00
Unverified
parent e13eb7588d
commit 49f5d6813e
+7 -4
View File
@@ -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);
}