From 4f3d16e9d532efd6a6bda283925efeb8c93b51c7 Mon Sep 17 00:00:00 2001 From: historia Date: Mon, 24 Aug 2026 05:04:09 -0400 Subject: feat: q behavior mirrors esc, port settings reordered --- app/ui/hub.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'app/ui/hub.py') 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) -- cgit v1.2.3