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:
parent
e13eb7588d
commit
49f5d6813e
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user