Merge branch 'remove_compact_mode' into for_webui
This commit is contained in:
@@ -1173,7 +1173,6 @@ class Config:
|
|||||||
self._ENABLE_SPEAKER2CHATBOX_PASS = "000000000"
|
self._ENABLE_SPEAKER2CHATBOX_PASS = "000000000"
|
||||||
self._ENABLE_LOGGER = False
|
self._ENABLE_LOGGER = False
|
||||||
self._ENABLE_VRC_MIC_MUTE_SYNC = False
|
self._ENABLE_VRC_MIC_MUTE_SYNC = False
|
||||||
self._IS_CONFIG_WINDOW_COMPACT_MODE = False
|
|
||||||
|
|
||||||
def load_config(self):
|
def load_config(self):
|
||||||
if os_path.isfile(self.PATH_CONFIG) is not False:
|
if os_path.isfile(self.PATH_CONFIG) is not False:
|
||||||
|
|||||||
@@ -630,21 +630,6 @@ def callbackCloseConfigWindow(data, action, *args, **kwargs) -> dict:
|
|||||||
startThreadingTranscriptionReceiveMessageOnCloseConfigWindow(action)
|
startThreadingTranscriptionReceiveMessageOnCloseConfigWindow(action)
|
||||||
return {"status":200, "result":True}
|
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
|
# Appearance Tab
|
||||||
def callbackSetTransparency(data, *args, **kwargs) -> dict:
|
def callbackSetTransparency(data, *args, **kwargs) -> dict:
|
||||||
printLog("Set Transparency", data)
|
printLog("Set Transparency", data)
|
||||||
|
|||||||
@@ -83,7 +83,6 @@ config_mapping = {
|
|||||||
"/config/enable_send_received_message_to_vrc": "ENABLE_SEND_RECEIVED_MESSAGE_TO_VRC",
|
"/config/enable_send_received_message_to_vrc": "ENABLE_SEND_RECEIVED_MESSAGE_TO_VRC",
|
||||||
"/config/enable_logger": "ENABLE_LOGGER",
|
"/config/enable_logger": "ENABLE_LOGGER",
|
||||||
"/config/enable_vrc_mic_mute_sync": "ENABLE_VRC_MIC_MUTE_SYNC",
|
"/config/enable_vrc_mic_mute_sync": "ENABLE_VRC_MIC_MUTE_SYNC",
|
||||||
"/config/is_config_window_compact_mode": "IS_CONFIG_WINDOW_COMPACT_MODE",
|
|
||||||
}
|
}
|
||||||
|
|
||||||
controller_mapping = {
|
controller_mapping = {
|
||||||
|
|||||||
Reference in New Issue
Block a user