Skip to content

Commit

Permalink
Merge pull request #5074 from Textualize/fix-push-screen-on-mount
Browse files Browse the repository at this point in the history
Fix push screen on mount
  • Loading branch information
willmcgugan authored Oct 1, 2024
2 parents 49a3d7d + 311d49e commit ffc8174
Show file tree
Hide file tree
Showing 3 changed files with 214 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/textual/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -2923,6 +2923,7 @@ async def invoke_ready_callback() -> None:
try:
await self._dispatch_message(events.Compose())
default_screen = self.screen
self.stylesheet.apply(self)
await self._dispatch_message(events.Mount())
self.check_idle()
finally:
Expand All @@ -2931,7 +2932,6 @@ async def invoke_ready_callback() -> None:

Reactive._initialize_object(self)

self.stylesheet.apply(self)
if self.screen is not default_screen:
self.stylesheet.apply(default_screen)

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit ffc8174

Please sign in to comment.