From 604e5c51080f6f5b88159b3c918e40a8edb7688b Mon Sep 17 00:00:00 2001 From: h8d13 Date: Mon, 16 Feb 2026 16:02:24 +0100 Subject: [PATCH] Fix dismiss() called from worker thread without event loop Use call_from_thread() to schedule dismiss on the main thread instead of calling it directly from @work(thread=True) callback. --- archinstall/tui/ui/components.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/archinstall/tui/ui/components.py b/archinstall/tui/ui/components.py index 5c9cb5bcee..628d6ffa53 100644 --- a/archinstall/tui/ui/components.py +++ b/archinstall/tui/ui/components.py @@ -110,7 +110,7 @@ def _set_cursor(self) -> None: def _exec_callback(self) -> None: assert self._data_callback result = self._data_callback() - _ = self.dismiss(Result(ResultType.Selection, _data=result)) + self.app.call_from_thread(self.dismiss, Result(ResultType.Selection, _data=result)) def action_pop_screen(self) -> None: _ = self.dismiss()