Tree::get_edited Fix in docs example code

(cherry picked from commit b0bcbcc094)
This commit is contained in:
kleonc 2022-05-05 15:07:40 +02:00 committed by Rémi Verschelde
parent 4c5d2159f5
commit 3993510fc6
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,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).