code: toggling DESCR include refresh search if any

This commit is contained in:
Solene Rapenne 2022-05-05 21:08:58 +02:00
parent 686c44ef9a
commit c7fc65a5aa
2 changed files with 6 additions and 0 deletions

View File

@ -146,3 +146,8 @@ func _on_Cancel_pressed():
func _on_Control_resized(): func _on_Control_resized():
if Tree: if Tree:
Tree.rect_size = self.rect_size Tree.rect_size = self.rect_size
func _on_Search_Descr_pressed():
if root_tree:
_on_LineEdit_text_entered($Panel/LineEdit.text)

View File

@ -94,5 +94,6 @@ text = "Cancel"
[connection signal="text_entered" from="Panel/LineEdit" to="." method="_on_LineEdit_text_entered"] [connection signal="text_entered" from="Panel/LineEdit" to="." method="_on_LineEdit_text_entered"]
[connection signal="item_selected" from="Panel/Tree" to="." method="_on_Tree_multi_selected"] [connection signal="item_selected" from="Panel/Tree" to="." method="_on_Tree_multi_selected"]
[connection signal="pressed" from="Panel/Button" to="." method="_on_Button_pressed"] [connection signal="pressed" from="Panel/Button" to="." method="_on_Button_pressed"]
[connection signal="pressed" from="Panel/Search_Descr" to="." method="_on_Search_Descr_pressed"]
[connection signal="pressed" from="ConsolePanel/Accept" to="." method="_on_Accept_pressed"] [connection signal="pressed" from="ConsolePanel/Accept" to="." method="_on_Accept_pressed"]
[connection signal="pressed" from="ConsolePanel/Cancel" to="." method="_on_Cancel_pressed"] [connection signal="pressed" from="ConsolePanel/Cancel" to="." method="_on_Cancel_pressed"]