Document Tree.item_collapsed also being emitted when the item is expanded

This also mentions that the signal is emitted even when the item is
expanded/collapsed through code.
This commit is contained in:
Hugo Locurcio
2025-08-02 17:51:11 +02:00
parent 45509c284c
commit e4131712a4

View File

@@ -431,7 +431,8 @@
<signal name="item_collapsed">
<param index="0" name="item" type="TreeItem" />
<description>
Emitted when an item is collapsed by a click on the folding arrow.
Emitted when an item is expanded or collapsed by clicking on the folding arrow or through code.
[b]Note:[/b] Despite its name, this signal is also emitted when an item is expanded.
</description>
</signal>
<signal name="item_edited">