Skip to content

Commit

Permalink
always redraw all states when setting text on shape
Browse files Browse the repository at this point in the history
  • Loading branch information
MyreMylar committed May 6, 2024
1 parent 3c29557 commit 55bd3a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pygame_gui/core/drawable_shapes/drawable_shape.py
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,7 @@ def set_text(self, text: str):
"""
self.theming['text'] = text
self.build_text_layout()
if 'disabled' in self.states and self.active_state == self.states['disabled']:
if 'disabled' in self.states:
self.redraw_all_states(force_full_redraw=True)
else:
self.redraw_all_states()
Expand Down

0 comments on commit 55bd3a8

Please sign in to comment.