Skip to content

Commit a32bb1d

Browse files
committed
voctogui.lib.toolbar.preview: we need to set_command every time on_best gets called, not just when targets change
1 parent 8447dd8 commit a32bb1d

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

voctogui/lib/toolbar/preview.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -165,10 +165,9 @@ def set_command(self, command, do_test=True):
165165

166166
def on_best(self, best, targetA, targetB):
167167
c = self.command()
168-
if (c.A, c.B) != (targetA, targetB) and (c.A, c.B) != (targetB, targetA):
169-
c.A = targetA
170-
c.B = targetB
171-
self.set_command(c, False)
168+
c.A = targetA
169+
c.B = targetB
170+
self.set_command(c, False)
172171
self.update_glow()
173172

174173
def on_composite(self, command):

0 commit comments

Comments
 (0)