diff options
| author | historia <historiavg@proton.me> | 2026-08-25 18:10:08 -0400 |
|---|---|---|
| committer | historia <historiavg@proton.me> | 2026-08-25 18:10:08 -0400 |
| commit | 4b49797b4d57c2d2cf63472636622a7a6280a38e (patch) | |
| tree | e3687c734de5d6159cdad288e025057ed6cd3a16 /app/backends/__init__.py | |
| parent | bcac6c42eaf9e004716d72960bddefb1db68a93c (diff) | |
| download | tts-audiobook-generator-4b49797b4d57c2d2cf63472636622a7a6280a38e.tar.gz | |
feat: no console drop when uninstalling backends
Diffstat (limited to 'app/backends/__init__.py')
| -rw-r--r-- | app/backends/__init__.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/app/backends/__init__.py b/app/backends/__init__.py index 83f9866..63f0709 100644 --- a/app/backends/__init__.py +++ b/app/backends/__init__.py @@ -147,13 +147,16 @@ class BackendInfo: SETUP_SCREEN runs the setup wizard on an already-open curses screen (the hub's), returning 0 on completion and non-zero when aborted; the - hub calls it as one screen of its own ``tui.Wizard`` stack. + hub calls it as one screen of its own ``tui.Wizard`` stack. UNINSTALL + removes the backend (stops its servers, pip-uninstalls, deletes its + files); the hub runs it inside the task view, calling it with optional + ``emit``/``cancel`` keywords (cancel honored between phases only). """ key: str label: str detect: Callable[[], BackendStatus] setup_screen: Callable[[object], int] - uninstall: Callable[[], int] = lambda: 0 + uninstall: Callable[..., int] = lambda *args, **kwargs: 0 REGISTRY: List[BackendInfo] = [] |
