From 9699bac7afaf726517b66bfe3294370937eaeca3 Mon Sep 17 00:00:00 2001 From: kleonc <9283098+kleonc@users.noreply.github.com> Date: Thu, 5 May 2022 15:07:40 +0200 Subject: [PATCH] Tree::get_edited Fix in docs example code --- doc/classes/Tree.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/classes/Tree.xml b/doc/classes/Tree.xml index 94fda0998..cd68076fd 100644 --- a/doc/classes/Tree.xml +++ b/doc/classes/Tree.xml @@ -100,7 +100,7 @@ Returns the currently edited item. Can be used with [signal item_edited] to get the item that was modified. [codeblock] func _ready(): - $Tree.item_edited.connect(on_Tree_item_edited) + $Tree.connect("item_edited", self, "on_Tree_item_edited") func on_Tree_item_edited(): print($Tree.get_edited()) # This item just got edited (e.g. checked).