1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 15:12:57 +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; } public SelectionScaleHandler ScaleHandler { get; private set; }
[Resolved] [Resolved(CanBeNull = true)]
private OsuContextMenuContainer editorContextMenuContainer { get; set; } protected OsuContextMenuContainer ContextMenuContainer { get; private set; }
protected SelectionHandler() protected SelectionHandler()
{ {
@ -237,7 +237,7 @@ namespace osu.Game.Screens.Edit.Compose.Components
protected void DeselectAll() protected void DeselectAll()
{ {
SelectedItems.Clear(); SelectedItems.Clear();
editorContextMenuContainer.CloseMenu(); ContextMenuContainer?.CloseMenu();
} }
/// <summary> /// <summary>