We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc64e15 commit 4b9087eCopy full SHA for 4b9087e
archinstall/tui/ui/components.py
@@ -113,7 +113,9 @@ def _set_cursor(self) -> None:
113
def _exec_callback(self) -> None:
114
assert self._data_callback
115
result = self._data_callback()
116
- _ = self.dismiss(Result(ResultType.Selection, _data=result))
+ # cannot call self.dismiss directly from
117
+ # background thread (thread=true) as there's no event loop
118
+ self.app.call_from_thread(self.dismiss, Result(ResultType.Selection, _data=result))
119
120
def action_pop_screen(self) -> None:
121
_ = self.dismiss()
0 commit comments