1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-14 15:57:24 +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
parent e13eb7588d
commit 49f5d6813e
No known key found for this signature in database
GPG Key ID: 8B746C7BDDF0BD76

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);
}