Merge pull request #60791 from kleonc/tree-item_edited-docs-fix

This commit is contained in:
Rémi Verschelde 2022-05-05 15:24:39 +02:00 committed by GitHub
commit 07b844e5b9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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.
[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).