From dfba71817a7fecaf43e7a9b811f1aabce1025a04 Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Sat, 23 Nov 2024 12:13:59 +0100 Subject: [PATCH] voctogui.lib.presetcontroller: log readable name --- voctogui/lib/presetcontroller.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/voctogui/lib/presetcontroller.py b/voctogui/lib/presetcontroller.py index 49d4c1cf..bbe085a8 100644 --- a/voctogui/lib/presetcontroller.py +++ b/voctogui/lib/presetcontroller.py @@ -83,9 +83,9 @@ def __init__(self, win, preview_controller, uibuilder): Connection.on("composite", self.on_composite) def on_btn_toggled(self, btn): - self.log.debug(f">on_btn_toggle {btn=}") + id = btn.get_name() + self.log.debug(f">on_btn_toggle {btn=} {id=}") if btn.get_active(): - id = btn.get_name() self.log.info(f"Preset Button {id} was pressed") if id not in self.button_to_composites: self.log.error(f"Button {id} not found in composites!")