Skip to content

Commit

Permalink
voctogui.lib.presetcontroller: fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Kunsi committed Apr 23, 2024
1 parent 39d42dd commit 300b4ad
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions voctogui/lib/presetcontroller.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,17 @@ def __init__(self, win, preview_controller, uibuilder):
self.button_to_composites = {}
self.current_state = None

if "buttons" not in sources or "buttons" not in composites:
if "buttons" not in toolbar_sources or "buttons" not in toolbar_composites:
self.box.hide()
self.box.set_no_show_all(True)
return

composites = toolbar_composites["buttons"].split(",")
source = toolbar_sources["buttons"].split(",")
sources = toolbar_sources["buttons"].split(",")
if "fs" in composites:
for sourceA in source:
for sourceA in sources:
buttons[f"preset_fs_{sourceA}.name"] = f"Fullscreen\n{sourceA}"
for sourceB in source:
for sourceB in sources:
if sourceA != sourceB:
self.button_to_composites[f"preset_fs_{sourceA}"] = (
CompositeCommand("fs", sourceA, sourceB)
Expand Down Expand Up @@ -97,7 +97,7 @@ def on_best(self, best, targetA, targetB):
self.log.debug(f">on_best {best=} {targetA=} {targetB=} {self.current_state=}")
c = self.preview_controller.command()
for name, composite in self.button_to_composites.items():
self.buttons[name].set_active(c == composite)
self.buttons[name]['button'].set_active(c == composite)
self.log.debug(f"<on_best {best=} {targetA=} {targetB=} {self.current_state=}")
self.update_glow()

Expand Down

0 comments on commit 300b4ad

Please sign in to comment.