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:
parent
6d385c6510
commit
75c0c6a5f9
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user