Skip to content

Commit

Permalink
Fix freeze after Onboarding
Browse files Browse the repository at this point in the history
  • Loading branch information
mzebrak committed Oct 15, 2024
1 parent 2b96bac commit c385690
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ async def previous_screen(self) -> None:

@on(CliveButton.Pressed, "#finish-button")
async def finish(self) -> None:
await self.action_finish()
# Has to be done in a separate task to avoid deadlock. More: https://github.com/Textualize/textual/issues/5008
self.app.run_worker(self.action_finish())

async def action_finish(self) -> None:
await self._owner.execute_post_actions()
Expand Down

0 comments on commit c385690

Please sign in to comment.