mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Add small delay before screenshot is taken
This commit is contained in:
@@ -641,6 +641,7 @@ class App(Generic[ReturnType], DOMNode):
|
||||
await asyncio.sleep(0.02)
|
||||
|
||||
await app._animator.wait_for_idle()
|
||||
await asyncio.sleep(0.05)
|
||||
|
||||
if screenshot:
|
||||
self._screenshot = self.export_screenshot(
|
||||
|
||||
Reference in New Issue
Block a user