aboutsummaryrefslogtreecommitdiff
path: root/app/ui/tui.py
diff options
context:
space:
mode:
authorhistoria <historiavg@proton.me>2026-08-27 22:40:58 -0400
committerhistoria <historiavg@proton.me>2026-08-27 22:40:58 -0400
commiteb465fb2a972b6b07c4b427f940b186745ce6d90 (patch)
tree416e0a706da7ede4f273458a2e243ac22393d606 /app/ui/tui.py
parent4c3ba1b68107208fe32c223588576a7bdca19a12 (diff)
downloadtts-audiobook-generator-eb465fb2a972b6b07c4b427f940b186745ce6d90.tar.gz
fix: can't check checkboxes in tts model page
Diffstat (limited to 'app/ui/tui.py')
-rw-r--r--app/ui/tui.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/app/ui/tui.py b/app/ui/tui.py
index 1997415..7da1dd1 100644
--- a/app/ui/tui.py
+++ b/app/ui/tui.py
@@ -1565,12 +1565,12 @@ def checkbox_tree(scr, title: str, families: List[dict],
if options:
checked.add((index, options[0]["key"]))
expanded.add(index)
- else:
- _, index, option_key = node
- if (index, option_key) in checked:
- checked.discard((index, option_key))
else:
- checked.add((index, option_key))
+ _, index, option_key = node
+ if (index, option_key) in checked:
+ checked.discard((index, option_key))
+ else:
+ checked.add((index, option_key))
# ---------------------------------------------------------------------------