aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-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."},