1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-19 15:40:14 +08:00

Fix code quality

This commit is contained in:
GAMIS65
2025-03-14 13:23:10 +01:00
Unverified
parent 8d10fe8d32
commit f37f60b22d
+3 -16
View File
@@ -1,7 +1,6 @@
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System.Collections.Generic;
using osu.Framework.Allocation;
using osu.Framework.Development;
using osu.Framework.Graphics;
@@ -9,7 +8,6 @@ using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Cursor;
using osu.Framework.Graphics.UserInterface;
using osu.Framework.Logging;
using osu.Framework.Platform;
using osu.Game.Graphics;
using osu.Game.Graphics.Containers;
using osu.Game.Graphics.Sprites;
@@ -84,9 +82,6 @@ namespace osu.Game.Overlays.Settings
{
private readonly string version;
[Resolved]
private Clipboard clipboard { get; set; } = null!;
[Resolved]
private OsuColour colours { get; set; } = null!;
@@ -119,18 +114,10 @@ namespace osu.Game.Overlays.Settings
});
}
public MenuItem[] ContextMenuItems
public MenuItem[] ContextMenuItems => new MenuItem[]
{
get
{
List<MenuItem> menuItems = new List<MenuItem>()
{
new OsuMenuItem("Copy version", MenuItemType.Standard, () => game?.CopyStringToClipboard(version))
};
return menuItems.ToArray();
}
}
new OsuMenuItem("Copy version", MenuItemType.Standard, () => game?.CopyStringToClipboard(version))
};
}
}
}