Fix async problem on text load (#191)

This commit is contained in:
cybermaggedon 2024-12-03 21:30:14 +00:00 committed by GitHub
parent 26865a515c
commit 5770af51ef
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -212,7 +212,7 @@ class Api:
# Text is base64 encoded
text = base64.b64decode(data["text"]).decode(charset)
resp = asyncio.to_thread(
resp = await asyncio.to_thread(
self.text_out.send,
None,
TextDocument(