Skip to content

Commit

Permalink
refresh on mode switch (#5211)
Browse files Browse the repository at this point in the history
  • Loading branch information
willmcgugan authored Nov 7, 2024
1 parent 09003df commit b5c44c2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/textual/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -2248,6 +2248,7 @@ def switch_mode(self, mode: str) -> AwaitMount:
await_mount = AwaitMount(self.screen, [])

self._current_mode = mode
self.refresh_css()
self.screen._screen_resized(self.size)
self.screen.post_message(events.ScreenResume())

Expand Down

0 comments on commit b5c44c2

Please sign in to comment.