aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhistoria <historiavg@proton.me>2026-08-27 15:54:50 -0400
committerhistoria <historiavg@proton.me>2026-08-27 15:54:50 -0400
commit6527240aa69a08f06e36e796818721abeec9f592 (patch)
tree0ae9f021248cdb15ea381c9246655f55a8857930
parent2252a0e4ae86fcc71a58af99d63750adab54cabd (diff)
downloadtts-audiobook-generator-6527240aa69a08f06e36e796818721abeec9f592.tar.gz
feat: better explanation of stop/exit setting
-rw-r--r--app/tests/test_hub.py1
-rw-r--r--app/ui/hub.py4
2 files changed, 4 insertions, 1 deletions
diff --git a/app/tests/test_hub.py b/app/tests/test_hub.py
index 7f16798..a9d4a4b 100644
--- a/app/tests/test_hub.py
+++ b/app/tests/test_hub.py
@@ -2263,6 +2263,7 @@ class SettingsTests(unittest.TestCase):
# The ports section note hangs off the first port field, the remote
# section note off the first remote URL field.
notes = {f["key"]: f.get("note") for f in captured["fields"]}
+ self.assertTrue(notes["stop_and_exit"])
self.assertTrue(notes["audiocpp_port"])
self.assertTrue(notes["audiocpp_remote_url"])
self.assertIsNone(notes["audio_format"])
diff --git a/app/ui/hub.py b/app/ui/hub.py
index 7ac938e..9c1bd97 100644
--- a/app/ui/hub.py
+++ b/app/ui/hub.py
@@ -1452,7 +1452,9 @@ def _settings_fields() -> list:
{"key": "chunk_size", "label": "Chunk size (words)", "kind": "text",
"value": str(config.CHUNK_SIZE), "validate": _validate_chunk_size},
{"key": "stop_and_exit", "label": "Default stop server and exit",
- "kind": "bool", "value": config.STOP_SERVER_AND_EXIT},
+ "kind": "bool", "value": config.STOP_SERVER_AND_EXIT,
+ "note": "Automatically stop the TTS server and exit TUI "
+ "after generating audiobooks"},
{"key": "unload_models", "label": "Unload models", "kind": "bool",
"value": config.AUDIOCPP_UNLOAD_MODELS,
"note": "audio.cpp: Unload previously-loaded models before converting to prevent VRAM exhaustion."},