1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-10 20:57:19 +08:00

Move to file menu

This commit is contained in:
Dean Herbert 2025-03-06 19:34:20 +09:00
parent 64830e2c31
commit d9b7d034ba
No known key found for this signature in database

View File

@ -392,10 +392,6 @@ namespace osu.Game.Screens.Edit
{
undoMenuItem = new EditorMenuItem(CommonStrings.Undo, MenuItemType.Standard, Undo) { Hotkey = new Hotkey(PlatformAction.Undo) },
redoMenuItem = new EditorMenuItem(CommonStrings.Redo, MenuItemType.Standard, Redo) { Hotkey = new Hotkey(PlatformAction.Redo) },
discardChangesMenuItem = new EditorMenuItem(GlobalActionKeyBindingStrings.EditorDiscardUnsavedChanges, MenuItemType.Destructive, DiscardUnsavedChanges)
{
Hotkey = new Hotkey(GlobalAction.EditorDiscardUnsavedChanges)
},
new OsuMenuItemSpacer(),
cutMenuItem = new EditorMenuItem(CommonStrings.Cut, MenuItemType.Standard, Cut) { Hotkey = new Hotkey(PlatformAction.Cut) },
copyMenuItem = new EditorMenuItem(CommonStrings.Copy, MenuItemType.Standard, Copy) { Hotkey = new Hotkey(PlatformAction.Copy) },
@ -1273,6 +1269,11 @@ namespace osu.Game.Screens.Edit
saveRelatedMenuItems.Add(save);
yield return save;
yield return discardChangesMenuItem = new EditorMenuItem(GlobalActionKeyBindingStrings.EditorDiscardUnsavedChanges, MenuItemType.Destructive, DiscardUnsavedChanges)
{
Hotkey = new Hotkey(GlobalAction.EditorDiscardUnsavedChanges)
};
if (RuntimeInfo.OS != RuntimeInfo.Platform.Android)
{
var export = createExportMenu();