diff --git a/voctogui/lib/toolbar/preview.py b/voctogui/lib/toolbar/preview.py index 90616e42..23d7ff11 100644 --- a/voctogui/lib/toolbar/preview.py +++ b/voctogui/lib/toolbar/preview.py @@ -168,9 +168,10 @@ def set_command(self, command, do_test=True): def on_best(self, best, targetA, targetB): self.log.debug(f">on_best {best=} {targetA=} {targetB=}") c = self.command() - c.A = targetA - c.B = targetB - self.set_command(c, False) + if c.A != targetA or c.B != targetB: + c.A = targetA + c.B = targetB + self.set_command(c, False) self.update_glow() self.log.debug(f"