Tree::get_edited Fix in docs example code

This commit is contained in:
kleonc 2022-05-05 15:07:40 +02:00 committed by Relintai
parent 8da8d44132
commit 9699bac7af

View File

@ -100,7 +100,7 @@
Returns the currently edited item. Can be used with [signal item_edited] to get the item that was modified. Returns the currently edited item. Can be used with [signal item_edited] to get the item that was modified.
[codeblock] [codeblock]
func _ready(): func _ready():
$Tree.item_edited.connect(on_Tree_item_edited) $Tree.connect("item_edited", self, "on_Tree_item_edited")
func on_Tree_item_edited(): func on_Tree_item_edited():
print($Tree.get_edited()) # This item just got edited (e.g. checked). print($Tree.get_edited()) # This item just got edited (e.g. checked).