aboutsummaryrefslogtreecommitdiff
path: root/app/ui/hub.py
diff options
context:
space:
mode:
authorhistoria <historiavg@proton.me>2026-08-24 05:04:09 -0400
committerhistoria <historiavg@proton.me>2026-08-24 05:04:09 -0400
commit4f3d16e9d532efd6a6bda283925efeb8c93b51c7 (patch)
treebd05c90a6fa47ee17bc521fde5519d19bab6a3d0 /app/ui/hub.py
parent0512a932bbf3b87619b6a250f87eb7904d22d1f7 (diff)
downloadtts-audiobook-generator-4f3d16e9d532efd6a6bda283925efeb8c93b51c7.tar.gz
feat: q behavior mirrors esc, port settings reordered
Diffstat (limited to 'app/ui/hub.py')
-rw-r--r--app/ui/hub.py20
1 files changed, 10 insertions, 10 deletions
diff --git a/app/ui/hub.py b/app/ui/hub.py
index 5f3d039..ef396e5 100644
--- a/app/ui/hub.py
+++ b/app/ui/hub.py
@@ -8,8 +8,8 @@ Each backend's setup wizard runs in its own curses session, so the hub
collects a "command" inside its own wrapper, returns to the plain terminal,
and then dispatches — no nested curses sessions.
-Esc on the main menu quits the hub. Esc inside a sub-menu falls back to the
-main menu.
+Esc on the main menu quits the hub ('q' mirrors Esc on every screen).
+Esc inside a sub-menu falls back to the main menu.
"""
import json
@@ -426,23 +426,23 @@ def _settings_menu(stdscr) -> None:
"value": config.LANGUAGE, "validate": _validate_language},
{"key": "chunk_size", "label": "Chunk size (words)", "kind": "text",
"value": str(config.CHUNK_SIZE), "validate": _validate_chunk_size},
- {"key": "qwen_custom_port", "label": "qwen-tts CustomVoice port",
+ {"key": "audiocpp_port", "label": "audio.cpp port",
"kind": "text",
- "value": str(_port_from_url(config.QWEN_API_URL, 7860)),
+ "value": str(_port_from_url(config.AUDIOCPP_API_URL, 8080)),
"validate": _validate_port,
"note": "Ports apply to servers this tool starts and detecting "
"local servers"},
- {"key": "qwen_clone_port", "label": "qwen-tts Base port",
- "kind": "text",
- "value": str(_port_from_url(config.CLONE_API_URL, 7861)),
- "validate": _validate_port},
{"key": "faster_port", "label": "faster-qwen3-tts port",
"kind": "text",
"value": str(_port_from_url(config.FASTER_API_URL, 8000)),
"validate": _validate_port},
- {"key": "audiocpp_port", "label": "audio.cpp port",
+ {"key": "qwen_custom_port", "label": "qwen-tts CustomVoice port",
"kind": "text",
- "value": str(_port_from_url(config.AUDIOCPP_API_URL, 8080)),
+ "value": str(_port_from_url(config.QWEN_API_URL, 7860)),
+ "validate": _validate_port},
+ {"key": "qwen_clone_port", "label": "qwen-tts Base port",
+ "kind": "text",
+ "value": str(_port_from_url(config.CLONE_API_URL, 7861)),
"validate": _validate_port},
]
result = tui.form(stdscr, "Settings", fields, back_value=_GO_BACK)