From a940c20fd2979464e6987497c31a43cca4d33447 Mon Sep 17 00:00:00 2001 From: peterhinch Date: Mon, 20 Feb 2023 09:52:03 +0000 Subject: [PATCH] label.py: Fix color change refresh bug --- gui/widgets/label.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gui/widgets/label.py b/gui/widgets/label.py index e32796e..0ad8a25 100644 --- a/gui/widgets/label.py +++ b/gui/widgets/label.py @@ -47,8 +47,8 @@ class Label(Widget): elif justify == 2: # Right self.tcol = self.col + self.width - sl - txt = super().value(text) # Sets .draw ensuring refresh - # Redraw even if no text supplied: colors may have changed. + txt = super().value(text) + self.draw = True # Redraw unconditionally: colors may have changed. self.invert = invert self.fgcolor = self.def_fgcolor if fgcolor is None else fgcolor self.bgcolor = self.def_bgcolor if bgcolor is None else bgcolor