Save before exporting

This commit is contained in:
smoogipoo 2020-01-15 13:48:28 +09:00
parent c25fefa3ca
commit e49701a215
1 changed files with 7 additions and 1 deletions

View File

@ -91,7 +91,7 @@ private void load(OsuColour colours, GameHost host)
if (RuntimeInfo.IsDesktop)
{
fileMenuItems.Add(new EditorMenuItem("Save", MenuItemType.Standard, saveBeatmap));
fileMenuItems.Add(new EditorMenuItem("Export package", MenuItemType.Standard, () => beatmapManager.Export(Beatmap.Value.BeatmapSetInfo)));
fileMenuItems.Add(new EditorMenuItem("Export package", MenuItemType.Standard, exportBeatmap));
fileMenuItems.Add(new EditorMenuItemSpacer());
}
@ -339,5 +339,11 @@ private void seek(UIEvent e, int direction)
}
private void saveBeatmap() => beatmapManager.Save(playableBeatmap.BeatmapInfo, editorBeatmap);
private void exportBeatmap()
{
saveBeatmap();
beatmapManager.Export(Beatmap.Value.BeatmapSetInfo);
}
}
}