From a32bb1d4bd386ecee2515adacf94daa111c092ae Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Mon, 20 May 2024 10:46:35 +0200 Subject: [PATCH] voctogui.lib.toolbar.preview: we need to set_command every time on_best gets called, not just when targets change --- voctogui/lib/toolbar/preview.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/voctogui/lib/toolbar/preview.py b/voctogui/lib/toolbar/preview.py index 4d7b1d22..7a050a24 100644 --- a/voctogui/lib/toolbar/preview.py +++ b/voctogui/lib/toolbar/preview.py @@ -165,10 +165,9 @@ def set_command(self, command, do_test=True): def on_best(self, best, targetA, targetB): c = self.command() - if (c.A, c.B) != (targetA, targetB) and (c.A, c.B) != (targetB, targetA): - c.A = targetA - c.B = targetB - self.set_command(c, False) + c.A = targetA + c.B = targetB + self.set_command(c, False) self.update_glow() def on_composite(self, command):