fix OverrideEditorSettingsMenu not being able to instance item more than once

This commit is contained in:
Lera Elvoé 2023-03-06 12:03:52 +03:00
parent c3fd701491
commit 86441354a3
Signed by: yagich
SSH Key Fingerprint: SHA256:6xjGb6uA7lAVcULa7byPEN//rQ0wPoG+UzYVMfZnbvc

View File

@ -9,8 +9,9 @@ const ITEM_SCENE := preload("res://UI/Components/OverrideEditorSettingsMenu/Over
func _ready() -> void: func _ready() -> void:
new_override_button.pressed.connect( new_override_button.pressed.connect(
add_item.bind(ITEM_SCENE.instantiate()) func():
) add_item(ITEM_SCENE.instantiate())
)
func add_item(item: OverrideEditorSettingsMenuItem) -> void: func add_item(item: OverrideEditorSettingsMenuItem) -> void: