diff options
| author | historia <historiavg@proton.me> | 2026-08-25 19:03:09 -0400 |
|---|---|---|
| committer | historia <historiavg@proton.me> | 2026-08-25 19:03:09 -0400 |
| commit | 8c9a782dfe94525dc5f0893c98fd19543648264b (patch) | |
| tree | fdff70d967ef06f0da560ca284842427cbe647a8 /app/ui/taskview.py | |
| parent | 64e9940d43fad1bc5908b39673b03e4fdc1e8f2f (diff) | |
| download | tts-audiobook-generator-8c9a782dfe94525dc5f0893c98fd19543648264b.tar.gz | |
fix: tui errors wait for getch()
Diffstat (limited to 'app/ui/taskview.py')
| -rw-r--r-- | app/ui/taskview.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/ui/taskview.py b/app/ui/taskview.py index c4fd35e..6708304 100644 --- a/app/ui/taskview.py +++ b/app/ui/taskview.py @@ -349,6 +349,9 @@ class TaskView: return self._result_rc() finally: self._cancel.set() + # Leave the screen blocking again: the timed redraw getch must + # not make later hub dialogs (e.g. tui.flash) dismiss themselves. + self._blocking() def _result_rc(self) -> int: """The exit code for the whole run (cancelled counts as failure).""" @@ -860,6 +863,9 @@ class LanesView: return self._result_rc() finally: self._cancel.set() + # Leave the screen blocking again: the timed redraw getch + # must not make later hub dialogs dismiss themselves. + self._blocking() finally: sys.stdout, sys.stderr = saved_out, saved_err |
