mirror of
https://github.com/ppy/osu.git
synced 2026-05-25 05:39:57 +08:00
Block beatmap editor from testing/exiting/exporting when saving fails
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user