1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-15 06:42:56 +08:00

Use object initialiser

This commit is contained in:
Dean Herbert 2020-02-25 20:52:33 +09:00
parent d6046abe70
commit 9557a2cd96

View File

@ -93,9 +93,10 @@ namespace osu.Game.Screens.Edit
EditorMenuBar menuBar;
var fileMenuItems = new List<MenuItem>();
fileMenuItems.Add(new EditorMenuItem("Save", MenuItemType.Standard, saveBeatmap));
var fileMenuItems = new List<MenuItem>
{
new EditorMenuItem("Save", MenuItemType.Standard, saveBeatmap)
};
if (RuntimeInfo.IsDesktop)
fileMenuItems.Add(new EditorMenuItem("Export package", MenuItemType.Standard, exportBeatmap));