From 4b1e0f9a94856bb5e9c05c021eac2a7e8d7cbd48 Mon Sep 17 00:00:00 2001 From: John Henry Beale Date: Fri, 23 Oct 2026 08:27:23 +0200 Subject: [PATCH] backlight: apply positions changed in the preferences without restart Co-Authored-By: Claude Opus 5.5 --- app_config.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app_config.py b/app_config.py index cf50c96..10d04c1 100644 --- a/app_config.py +++ b/app_config.py @@ -704,6 +704,10 @@ verbose bits: elif par_nm == AppCfg.DFT_POS_BKLGT: d=dict(map(lambda x:(x.name(),x.value()), parent.children())) cfg.setValue(par_nm,d) + try: + app._backlight._pos=d # Backlight keeps its own copy of the positions + except AttributeError: + pass elif par_nm == AppCfg.DFT_POS_DET: d={x.name(): x.value() for x in parent.children() if x.type()!='action'} cfg.setValue(par_nm,d)