Textualize / textual

The lean application framework for Python. Build sophisticated user interfaces with a simple Python API. Run your apps in the terminal and a web browser.
https://textual.textualize.io/
MIT License
25.19k stars 772 forks source link

check signal on publish #4635

Closed willmcgugan closed 3 months ago

willmcgugan commented 3 months ago

Signals are proving problematic since they can be sent at arbitrary points.

This prevents publishing signals while the DOM is shutting down.

Fixes https://github.com/Textualize/textual/issues/4634