From b5f8a0d560b3df693ecc0b171395bebab393dd72 Mon Sep 17 00:00:00 2001 From: misyaguziya Date: Mon, 2 Sep 2024 12:07:13 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=97=91=EF=B8=8F[Remove]=20Model=20:=20SEN?= =?UTF-8?q?T=5FMESSAGES=5FLOG/CURRENT=5FSENT=5FMESSAGES=5FLOG=5FINDEX?= =?UTF-8?q?=E3=82=92=E5=89=8A=E9=99=A4=EF=BC=88=E3=82=B3=E3=83=A1=E3=83=B3?= =?UTF-8?q?=E3=83=88=E3=82=A2=E3=82=A6=E3=83=88=E3=81=AE=E3=81=BF=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src-python/config.py | 32 ++++++++++++++++---------------- src-python/webui_controller.py | 10 +++++----- 2 files changed, 21 insertions(+), 21 deletions(-) diff --git a/src-python/config.py b/src-python/config.py index ada54333..23091218 100644 --- a/src-python/config.py +++ b/src-python/config.py @@ -211,23 +211,23 @@ class Config: if value in list(translation_lang.keys()): self._CHOICE_OUTPUT_TRANSLATOR = value - @property - def SENT_MESSAGES_LOG(self): - return self._SENT_MESSAGES_LOG + # @property + # def SENT_MESSAGES_LOG(self): + # return self._SENT_MESSAGES_LOG - @SENT_MESSAGES_LOG.setter - def SENT_MESSAGES_LOG(self, value): - if isinstance(value, list): - self._SENT_MESSAGES_LOG = value + # @SENT_MESSAGES_LOG.setter + # def SENT_MESSAGES_LOG(self, value): + # if isinstance(value, list): + # self._SENT_MESSAGES_LOG = value - @property - def CURRENT_SENT_MESSAGES_LOG_INDEX(self): - return self._CURRENT_SENT_MESSAGES_LOG_INDEX + # @property + # def CURRENT_SENT_MESSAGES_LOG_INDEX(self): + # return self._CURRENT_SENT_MESSAGES_LOG_INDEX - @CURRENT_SENT_MESSAGES_LOG_INDEX.setter - def CURRENT_SENT_MESSAGES_LOG_INDEX(self, value): - if isinstance(value, int): - self._CURRENT_SENT_MESSAGES_LOG_INDEX = value + # @CURRENT_SENT_MESSAGES_LOG_INDEX.setter + # def CURRENT_SENT_MESSAGES_LOG_INDEX(self, value): + # if isinstance(value, int): + # self._CURRENT_SENT_MESSAGES_LOG_INDEX = value @property def IS_RESET_BUTTON_DISPLAYED_FOR_TRANSLATION(self): @@ -1006,8 +1006,8 @@ class Config: self._SOURCE_COUNTRY = "Japan" self._TARGET_LANGUAGE = "English" self._TARGET_COUNTRY = "United States" - self._SENT_MESSAGES_LOG = [] - self._CURRENT_SENT_MESSAGES_LOG_INDEX = 0 + # self._SENT_MESSAGES_LOG = [] + # self._CURRENT_SENT_MESSAGES_LOG_INDEX = 0 self._IS_RESET_BUTTON_DISPLAYED_FOR_TRANSLATION = False self._IS_RESET_BUTTON_DISPLAYED_FOR_WHISPER = False self._IS_EASTER_EGG_ENABLED = False diff --git a/src-python/webui_controller.py b/src-python/webui_controller.py index e1fc88e2..78915e37 100644 --- a/src-python/webui_controller.py +++ b/src-python/webui_controller.py @@ -99,7 +99,7 @@ class MicMessage: } }) elif isinstance(message, str) and len(message) > 0: - addSentMessageLog(message) + # addSentMessageLog(message) translation = "" if model.checkKeywords(message): self.action("word_filter", { @@ -301,7 +301,7 @@ class ChatMessage: id = data["id"] message = decodeUtf8(data["message"]) if len(message) > 0: - addSentMessageLog(message) + # addSentMessageLog(message) translation = "" if config.ENABLE_TRANSLATION is False: pass @@ -373,9 +373,9 @@ def messageBoxFocusOut(e): if config.ENABLE_SEND_MESSAGE_TO_VRC is True: model.oscStopSendTyping() -def addSentMessageLog(sent_message): - config.SENT_MESSAGES_LOG.append(sent_message) - config.CURRENT_SENT_MESSAGES_LOG_INDEX = len(config.SENT_MESSAGES_LOG) +# def addSentMessageLog(sent_message): +# config.SENT_MESSAGES_LOG.append(sent_message) +# config.CURRENT_SENT_MESSAGES_LOG_INDEX = len(config.SENT_MESSAGES_LOG) # def updateMessageBox(index_offset): # if len(config.SENT_MESSAGES_LOG) == 0: