From 2c4d690e825a55c663299545711ef4149664afe4 Mon Sep 17 00:00:00 2001 From: LeonOstrez Date: Thu, 20 Jun 2024 15:07:27 +0200 Subject: [PATCH] remove self.writer.drain() duplicate and add new functions to virtual ui --- core/ui/ipc_client.py | 3 --- core/ui/virtual.py | 6 ++++++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/core/ui/ipc_client.py b/core/ui/ipc_client.py index 58008dcc..53eff7ab 100644 --- a/core/ui/ipc_client.py +++ b/core/ui/ipc_client.py @@ -198,15 +198,12 @@ class IPCClientUI(UIBase): async def send_key_expired(self, message: Optional[str] = None): await self._send(MessageType.KEY_EXPIRED) - await self.writer.drain() async def send_app_finished(self): await self._send(MessageType.APP_FINISHED) - await self.writer.drain() async def send_feature_finished(self): await self._send(MessageType.FEATURE_FINISHED) - await self.writer.drain() async def ask_question( self, diff --git a/core/ui/virtual.py b/core/ui/virtual.py index 9ab54808..1d3f51b1 100644 --- a/core/ui/virtual.py +++ b/core/ui/virtual.py @@ -37,6 +37,12 @@ class VirtualUI(UIBase): async def send_key_expired(self, message: Optional[str]): pass + async def send_app_finished(self): + pass + + async def send_feature_finished(self): + pass + async def ask_question( self, question: str,