[bugfix] Config Window: スレッショルドチェックボタンDisabled処理が、コンパクトモードや設定画面閉じる際に解除されてしまうのを修正。

This commit is contained in:
Sakamoto Shiina
2023-10-12 14:27:12 +09:00
parent 01ade68d4e
commit 2d43061f8e
2 changed files with 23 additions and 10 deletions

13
view.py
View File

@@ -738,6 +738,13 @@ class View():
]
)
def initMicThresholdCheckButton(self):
if config.CHOICE_MIC_HOST == "NoHost" or config.CHOICE_MIC_DEVICE == "NoDevice":
self.replaceMicThresholdCheckButton_Disabled()
else:
self.replaceMicThresholdCheckButton_Passive()
@staticmethod
def replaceMicThresholdCheckButton_Active():
vrct_gui.config_window.sb__progressbar_x_slider__passive_button_mic_energy_threshold.grid_remove()
@@ -758,6 +765,12 @@ class View():
def initSpeakerThresholdCheckButton(self):
if config.CHOICE_SPEAKER_DEVICE == "NoDevice":
self.replaceSpeakerThresholdCheckButton_Disabled()
else:
self.replaceSpeakerThresholdCheckButton_Passive()
@staticmethod
def replaceSpeakerThresholdCheckButton_Active():
vrct_gui.config_window.sb__progressbar_x_slider__passive_button_speaker_energy_threshold.grid_remove()