Skip to content

Commit

Permalink
voctogui.lib.toolbar.preview: we need to set_command every time on_be…
Browse files Browse the repository at this point in the history
…st gets called, not just when targets change
  • Loading branch information
Kunsi committed May 20, 2024
1 parent 8447dd8 commit a32bb1d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions voctogui/lib/toolbar/preview.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit a32bb1d

Please sign in to comment.