From 6527240aa69a08f06e36e796818721abeec9f592 Mon Sep 17 00:00:00 2001 From: historia Date: Thu, 27 Aug 2026 15:54:50 -0400 Subject: feat: better explanation of stop/exit setting --- app/tests/test_hub.py | 1 + app/ui/hub.py | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'app') 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."}, -- cgit v1.2.3