From 4b9087e2f4f739bd5ceed6cd18fddad89dc73b4a Mon Sep 17 00:00:00 2001 From: Daniel Girtler Date: Thu, 26 Mar 2026 23:04:43 +1100 Subject: [PATCH] Fix AwaitComplete runtime error (#4325) --- archinstall/tui/ui/components.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/archinstall/tui/ui/components.py b/archinstall/tui/ui/components.py index ced6b5a9..475f7b17 100644 --- a/archinstall/tui/ui/components.py +++ b/archinstall/tui/ui/components.py @@ -113,7 +113,9 @@ class LoadingScreen(BaseScreen[ValueT]): def _exec_callback(self) -> None: assert self._data_callback result = self._data_callback() - _ = self.dismiss(Result(ResultType.Selection, _data=result)) + # cannot call self.dismiss directly from + # background thread (thread=true) as there's no event loop + self.app.call_from_thread(self.dismiss, Result(ResultType.Selection, _data=result)) def action_pop_screen(self) -> None: _ = self.dismiss()