From 55bd3a85cc1432cb25d812706d2a5cbcf0e7a9e9 Mon Sep 17 00:00:00 2001 From: Dan Lawrence Date: Mon, 6 May 2024 15:43:20 +0100 Subject: [PATCH] always redraw all states when setting text on shape --- pygame_gui/core/drawable_shapes/drawable_shape.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pygame_gui/core/drawable_shapes/drawable_shape.py b/pygame_gui/core/drawable_shapes/drawable_shape.py index c7d5a4f7..8ec5c7fe 100644 --- a/pygame_gui/core/drawable_shapes/drawable_shape.py +++ b/pygame_gui/core/drawable_shapes/drawable_shape.py @@ -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()