Skip to content

Commit

Permalink
Fix for textbubble crash
Browse files Browse the repository at this point in the history
Some bad practices on my part there... Well, it's better now.
  • Loading branch information
Jowan-Spooner committed Sep 4, 2024
1 parent 2ee88a2 commit 626d3bf
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,8 @@ func bubble_apply_overrides(bubble:TextBubble) -> void:
nlp.get_theme_stylebox(&'panel').content_margin_bottom = name_label_padding.y
bubble.name_label_offset = name_label_offset
bubble.name_label_alignment = name_label_alignment

if !name_label_enabled:
nlp.queue_free()


nlp.get_parent().visible = name_label_enabled

## CHOICE SETTINGS
if choices_layout_force_lines:
Expand Down Expand Up @@ -185,5 +183,3 @@ func bubble_apply_overrides(bubble:TextBubble) -> void:
choice_theme.set_color(&'font_focus_color', &'Button', choices_text_color_focus)
choice_theme.set_color(&'font_disabled_color', &'Button', choices_text_color_disabled)
bubble.choice_container.theme = choice_theme


0 comments on commit 626d3bf

Please sign in to comment.