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()