From e7332ef16afcb576d611963947a2c8ffe109d399 Mon Sep 17 00:00:00 2001 From: peterhinch Date: Sun, 15 Jan 2023 09:23:35 +0000 Subject: [PATCH] dial.py: Fix Pointer color bug. --- gui/widgets/dial.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gui/widgets/dial.py b/gui/widgets/dial.py index c15123c..ae49510 100644 --- a/gui/widgets/dial.py +++ b/gui/widgets/dial.py @@ -43,7 +43,8 @@ class Pointer: self.color = None def value(self, v=None, color=None): - self.color = color + if color is not None: + self.color = color if v is not None: if isinstance(v, complex): l = cmath.polar(v)[0]