From 4d1a3a5dc9428df598c9631494d111b9fa067923 Mon Sep 17 00:00:00 2001 From: Will McGugan Date: Sat, 18 Feb 2023 10:42:42 +0000 Subject: [PATCH] speed up shutdown --- src/textual/app.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/textual/app.py b/src/textual/app.py index 33b887e090..3185247e92 100644 --- a/src/textual/app.py +++ b/src/textual/app.py @@ -1778,6 +1778,7 @@ async def _close_all(self) -> None: await child._close_messages() async def _shutdown(self) -> None: + self._begin_update() # Prevents any layout / repaint while shutting down driver = self._driver self._running = False if driver is not None: