diff options
Diffstat (limited to 'app/ui')
| -rw-r--r-- | app/ui/hub.py | 18 | ||||
| -rw-r--r-- | app/ui/tui.py | 10 |
2 files changed, 15 insertions, 13 deletions
diff --git a/app/ui/hub.py b/app/ui/hub.py index 68417f7..4fae67b 100644 --- a/app/ui/hub.py +++ b/app/ui/hub.py @@ -834,7 +834,9 @@ def _help_lines() -> list: Items are text_viewer rows: "" (a blank line) or a (segments, indent) pair — SEGMENTS are (text, kind) with KIND a theme key (None = body). Numbered steps start at the margin; every other - line is indented two spaces so it reads as part of its step. The + line is indented three spaces — Frame's two-space indent unit + plus a leading space in the row's first segment — so it lines up + with the step text after the "N. " prefixes. The input/output folders are read from the converter module at call time, so a Settings change this session is reflected without a restart. @@ -842,11 +844,11 @@ def _help_lines() -> list: return [ ([("1. ", "title"), ("Put your ebooks (epub, txt, or pdf) here:", None)], 0), - ([(str(converter_mod.BOOKS_FOLDER), "input")], 1), + ([(" " + str(converter_mod.BOOKS_FOLDER), "input")], 1), "", ([("2. ", "title"), ("Put any .wavs of voices to clone here:", None)], 0), - ([(str(common.VOICES_DIR), "input")], 1), + ([(" " + str(common.VOICES_DIR), "input")], 1), "", ([("3. ", "title"), ("If no backend is installed, go to ", None), @@ -858,24 +860,24 @@ def _help_lines() -> list: ("Select TTS models to install. If you're unsure, try " "these qwen3-tts models:", None)], 0), "", - ([("Voice cloning:", None), (" ", None), + ([(" Voice cloning:", None), (" ", None), ("qwen3_tts_1_7b_base_q8_0", "ok")], 1), - ([("Built-in-voice:", None), (" ", None), + ([(" Built-in-voice:", None), (" ", None), ("qwen3_tts_1_7b_customvoice_q8_0", "ok")], 1), "", - ([("It will take a while to build audio.cpp and download " + ([(" It will take a while to build audio.cpp and download " "the model files.", None)], 1), "", ([("5. ", "title"), ("Go to ", None), ("Generate Audiobooks", "accent"), (". It will automatically start the necessary server, " "generate the books, and stop it.", None)], 0), - ([("There is no need to manually start/stop servers.", None)], 1), + ([(" There is no need to manually start/stop servers.", None)], 1), "", ([("6. ", "title"), ("Generated audiobooks (m4b, mp3, etc.) will output here:", None)], 0), - ([(str(converter_mod.AUDIOBOOKS_FOLDER), "input")], 1), + ([(" " + str(converter_mod.AUDIOBOOKS_FOLDER), "input")], 1), ] 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)) # --------------------------------------------------------------------------- |
