1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 02:42:54 +08:00

Make the OsuContextMenu nullable in SelectionHandler

This commit is contained in:
jkh675 2024-08-05 16:32:49 +08:00
parent 6d385c6510
commit 75c0c6a5f9

View File

@ -60,8 +60,8 @@ namespace osu.Game.Screens.Edit.Compose.Components
public SelectionScaleHandler ScaleHandler { get; private set; }
[Resolved]
private OsuContextMenuContainer editorContextMenuContainer { get; set; }
[Resolved(CanBeNull = true)]
protected OsuContextMenuContainer ContextMenuContainer { get; private set; }
protected SelectionHandler()
{
@ -237,7 +237,7 @@ namespace osu.Game.Screens.Edit.Compose.Components
protected void DeselectAll()
{
SelectedItems.Clear();
editorContextMenuContainer.CloseMenu();
ContextMenuContainer?.CloseMenu();
}
/// <summary>