summaryrefslogtreecommitdiff
path: root/components/button.gd
diff options
context:
space:
mode:
Diffstat (limited to 'components/button.gd')
-rw-r--r--components/button.gd2
1 files changed, 2 insertions, 0 deletions
diff --git a/components/button.gd b/components/button.gd
index 6ed79be..45a3f4f 100644
--- a/components/button.gd
+++ b/components/button.gd
@@ -39,6 +39,8 @@ func _ready():
func _text(value):
text = value
+ if label == null:
+ return
_text_changed()
func _text_changed():