From e49701a215d12e1c45fbc59179fce53242eb1a39 Mon Sep 17 00:00:00 2001 From: smoogipoo Date: Wed, 15 Jan 2020 13:48:28 +0900 Subject: [PATCH] Save before exporting --- osu.Game/Screens/Edit/Editor.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/osu.Game/Screens/Edit/Editor.cs b/osu.Game/Screens/Edit/Editor.cs index a6f9963f67..e212b429b9 100644 --- a/osu.Game/Screens/Edit/Editor.cs +++ b/osu.Game/Screens/Edit/Editor.cs @@ -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); + } } }