From e1aa72715db9fe2d788c1639f4fc58704b359f4f Mon Sep 17 00:00:00 2001 From: misyaguziya Date: Fri, 13 Sep 2024 11:21:27 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=97=91=EF=B8=8F[remove]=20Model=20:=20IS?= =?UTF-8?q?=5FCONFIG=5FWINDOW=5FCOMPACT=5FMODE=E5=91=A8=E3=82=8A=E3=81=AE?= =?UTF-8?q?=E5=87=A6=E7=90=86=E3=82=92=E5=89=8A=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src-python/config.py | 1 - src-python/webui_controller.py | 15 --------------- src-python/webui_mainloop.py | 1 - 3 files changed, 17 deletions(-) diff --git a/src-python/config.py b/src-python/config.py index 229942c3..ba23cd0d 100644 --- a/src-python/config.py +++ b/src-python/config.py @@ -1173,7 +1173,6 @@ class Config: self._ENABLE_SPEAKER2CHATBOX_PASS = "000000000" self._ENABLE_LOGGER = False self._ENABLE_VRC_MIC_MUTE_SYNC = False - self._IS_CONFIG_WINDOW_COMPACT_MODE = False def load_config(self): if os_path.isfile(self.PATH_CONFIG) is not False: diff --git a/src-python/webui_controller.py b/src-python/webui_controller.py index 0c093367..c838305c 100644 --- a/src-python/webui_controller.py +++ b/src-python/webui_controller.py @@ -630,21 +630,6 @@ def callbackCloseConfigWindow(data, action, *args, **kwargs) -> dict: startThreadingTranscriptionReceiveMessageOnCloseConfigWindow(action) return {"status":200, "result":True} -# Compact Mode Switch -def callbackEnableConfigWindowCompactMode(*args, **kwargs) -> dict: - printLog("Enable Config Window Compact Mode") - config.IS_CONFIG_WINDOW_COMPACT_MODE = True - model.stopCheckMicEnergy() - model.stopCheckSpeakerEnergy() - return {"status":200, "result":config.IS_CONFIG_WINDOW_COMPACT_MODE} - -def callbackDisableConfigWindowCompactMode(*args, **kwargs) -> dict: - printLog("Disable Config Window Compact Mode") - config.IS_CONFIG_WINDOW_COMPACT_MODE = False - model.stopCheckMicEnergy() - model.stopCheckSpeakerEnergy() - return {"status":200, "result":config.IS_CONFIG_WINDOW_COMPACT_MODE} - # Appearance Tab def callbackSetTransparency(data, *args, **kwargs) -> dict: printLog("Set Transparency", data) diff --git a/src-python/webui_mainloop.py b/src-python/webui_mainloop.py index 3f408a5a..e9219eea 100644 --- a/src-python/webui_mainloop.py +++ b/src-python/webui_mainloop.py @@ -83,7 +83,6 @@ config_mapping = { "/config/enable_send_received_message_to_vrc": "ENABLE_SEND_RECEIVED_MESSAGE_TO_VRC", "/config/enable_logger": "ENABLE_LOGGER", "/config/enable_vrc_mic_mute_sync": "ENABLE_VRC_MIC_MUTE_SYNC", - "/config/is_config_window_compact_mode": "IS_CONFIG_WINDOW_COMPACT_MODE", } controller_mapping = {