From 8dafee9f6d1645137b37b712de28bcd2ecef4320 Mon Sep 17 00:00:00 2001 From: Ethanfel Date: Sat, 4 Apr 2026 14:49:34 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20read=20sw.value=20directly=20for=20thumb?= =?UTF-8?q?nail=20opacity=20=E2=80=94=20e.args=20is=20a=20list=20not=20boo?= =?UTF-8?q?l?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tab_batch_ng.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tab_batch_ng.py b/tab_batch_ng.py index 71f512d..1ff8e14 100644 --- a/tab_batch_ng.py +++ b/tab_batch_ng.py @@ -588,7 +588,7 @@ def _render_sequence_card(i, seq, batch_list, data, file_path, state, frame_switches.append(sw) if thumb is not None: sw.on('update:model-value', - lambda e, t=thumb: t.style(f'opacity: {"1.0" if e.args else "0.25"}')) + lambda e, t=thumb, s=sw: t.style(f'opacity: {"1.0" if s.value else "0.25"}')) with ui.row().classes('w-full no-wrap q-mt-xs q-gutter-xs'): dict_number('High', seq, hi_key, default=1.0, step=0.05, format='%.2f').classes('col').props('outlined dense')