From fe4fc8b0a22ec665179098a41a8ed1ad594a55b4 Mon Sep 17 00:00:00 2001 From: Emmanouil Papadeas <35376950+OverloadedOrama@users.noreply.github.com> Date: Sun, 19 May 2024 23:35:27 +0300 Subject: [PATCH] [skip ci] Set a default name for the CollapsibleContainers, if they have none Mostly useful for debugging CollapsibleContainers made with code --- src/UI/Nodes/CollapsibleContainer.gd | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/UI/Nodes/CollapsibleContainer.gd b/src/UI/Nodes/CollapsibleContainer.gd index 9c9cfbe1f..61bf7dc96 100644 --- a/src/UI/Nodes/CollapsibleContainer.gd +++ b/src/UI/Nodes/CollapsibleContainer.gd @@ -26,6 +26,8 @@ func _init() -> void: func _ready() -> void: + if name.is_empty(): + name = "CollapsibleContainer" _button.flat = flat _button.toggle_mode = true _button.mouse_default_cursor_shape = Control.CURSOR_POINTING_HAND