mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
fix segmentation fault
This commit is contained in:
@@ -1071,7 +1071,7 @@ class App(Generic[ReturnType], DOMNode):
|
||||
async def shutdown(self):
|
||||
await self._disconnect_devtools()
|
||||
driver = self._driver
|
||||
assert driver is not None
|
||||
if driver is not None:
|
||||
driver.disable_input()
|
||||
await self.close_messages()
|
||||
|
||||
|
||||
@@ -37,7 +37,6 @@ from .geometry import Offset, Region, Size, Spacing, clamp
|
||||
from .layouts.vertical import VerticalLayout
|
||||
from .message import Message
|
||||
from .reactive import Reactive, watch
|
||||
from .renderables.align import Align
|
||||
|
||||
|
||||
if TYPE_CHECKING:
|
||||
|
||||
@@ -77,3 +77,5 @@ async def test_screens():
|
||||
# Check we can't pop last screen
|
||||
with pytest.raises(ScreenStackError):
|
||||
app.pop_screen()
|
||||
|
||||
await app.shutdown()
|
||||
|
||||
Reference in New Issue
Block a user