From 3b975355a5e76eeaac144c78a876b1f9c6069148 Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Sat, 23 Nov 2024 12:42:25 +0100 Subject: [PATCH] voctogui.lib.presetcontroller: only call set_command() if its actually different --- voctogui/lib/presetcontroller.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/voctogui/lib/presetcontroller.py b/voctogui/lib/presetcontroller.py index bbe085a8..30f8ecf0 100644 --- a/voctogui/lib/presetcontroller.py +++ b/voctogui/lib/presetcontroller.py @@ -92,8 +92,12 @@ def on_btn_toggled(self, btn): return self.log.debug(f"{self.button_to_composites[id]=}") self.log.info(f"Selecting {self.button_to_composites[id]} for next scene") - self.preview_controller.set_command(self.button_to_composites[id]) - self.log.debug(f"