From 86441354a3855100d4a8306745af7c4b7e43f78b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lera=20Elvo=C3=A9?= Date: Mon, 6 Mar 2023 12:03:52 +0300 Subject: [PATCH] fix OverrideEditorSettingsMenu not being able to instance item more than once --- .../OverrideEditorSettingsMenu/OverrideEditorSettingsMenu.gd | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/UI/Components/OverrideEditorSettingsMenu/OverrideEditorSettingsMenu.gd b/UI/Components/OverrideEditorSettingsMenu/OverrideEditorSettingsMenu.gd index 5d4c0b6..eed5cee 100644 --- a/UI/Components/OverrideEditorSettingsMenu/OverrideEditorSettingsMenu.gd +++ b/UI/Components/OverrideEditorSettingsMenu/OverrideEditorSettingsMenu.gd @@ -9,8 +9,9 @@ const ITEM_SCENE := preload("res://UI/Components/OverrideEditorSettingsMenu/Over func _ready() -> void: new_override_button.pressed.connect( - add_item.bind(ITEM_SCENE.instantiate()) - ) + func(): + add_item(ITEM_SCENE.instantiate()) + ) func add_item(item: OverrideEditorSettingsMenuItem) -> void: