Skip to content

Commit

Permalink
Ensure the active message pump is set when app is the sender (#2302)
Browse files Browse the repository at this point in the history
See #2301
  • Loading branch information
davep authored Apr 17, 2023
1 parent 0509cf8 commit f8b51ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

- Fixed order styles are applied in DataTable - allows combining of renderable styles and component classes https://github.com/Textualize/textual/pull/2272
- Fix empty ListView preventing bindings from firing https://github.com/Textualize/textual/pull/2281
- Fixed `active_message_pump.get` sometimes resulting in a `LookupError` https://github.com/Textualize/textual/issues/2301


## [0.19.1] - 2023-04-10
Expand Down
1 change: 1 addition & 0 deletions src/textual/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -1603,6 +1603,7 @@ async def _process_messages(
terminal_size: tuple[int, int] | None = None,
) -> None:
self._set_active()
active_message_pump.set(self)

if self.devtools is not None:
from .devtools.client import DevtoolsConnectionError
Expand Down

0 comments on commit f8b51ea

Please sign in to comment.