From 304d97ae224b296fbcadb9e99481a1d15cbe9c73 Mon Sep 17 00:00:00 2001 From: misyaguziya Date: Fri, 27 Sep 2024 02:07:32 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=8D=EF=B8=8F[Update]=20Controller=20:?= =?UTF-8?q?=20class=E3=81=8B=E3=82=89=E9=96=A2=E6=95=B0=E3=81=AB=E5=A4=89?= =?UTF-8?q?=E5=8C=96=E3=81=97=E3=81=9F=E9=83=A8=E5=88=86=E3=82=92=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src-python/webui_controller.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src-python/webui_controller.py b/src-python/webui_controller.py index b449aaf8..43088f9f 100644 --- a/src-python/webui_controller.py +++ b/src-python/webui_controller.py @@ -125,7 +125,6 @@ class Controller: ) elif isinstance(message, str) and len(message) > 0: - # addSentMessageLog(message) translation = [] transliteration = [] if model.checkKeywords(message): @@ -245,7 +244,6 @@ class Controller: id = data["id"] message = data["message"] if len(message) > 0: - # addSentMessageLog(message) translation = [] transliteration = [] if config.ENABLE_TRANSLATION is False: @@ -1415,8 +1413,7 @@ class Controller: th_stopTranscriptionSendMessage.join() def startTranscriptionSendMessageOnCloseConfigWindow(self) -> None: - mic_message = self.MicMessage(self) - model.startMicTranscript(mic_message.send) + model.startMicTranscript(self.micMessage) @staticmethod def stopTranscriptionSendMessageOnOpenConfigWindow() -> None: @@ -1451,8 +1448,7 @@ class Controller: th_stopTranscriptionReceiveMessage.join() def startTranscriptionReceiveMessageOnCloseConfigWindow(self) -> None: - speaker_message = self.SpeakerMessage(self) - model.startSpeakerTranscript(speaker_message.receive) + model.startSpeakerTranscript(self.speakerMessage) @staticmethod def stopTranscriptionReceiveMessageOnOpenConfigWindow() -> None: