👍️[Update] Controller : 翻訳エンジンがlimit error時にerror対象の翻訳エンジンのみを使用不可にするように変更

This commit is contained in:
misyaguziya
2024-12-17 02:18:26 +09:00
parent 813f2d20f9
commit 1afbd8fec6
3 changed files with 49 additions and 20 deletions

View File

@@ -228,6 +228,15 @@ class Config:
if isinstance(value, dict):
self._SELECTABLE_WHISPER_WEIGHT_TYPE_DICT = value
@property
def SELECTABLE_TRANSLATION_ENGINE_STATUS(self):
return self._SELECTABLE_TRANSLATION_ENGINE_STATUS
@SELECTABLE_TRANSLATION_ENGINE_STATUS.setter
def SELECTABLE_TRANSLATION_ENGINE_STATUS(self, value):
if isinstance(value, dict):
self._SELECTABLE_TRANSLATION_ENGINE_STATUS = value
# Save Json Data
## Main Window
@property
@@ -952,6 +961,9 @@ class Config:
self._SELECTABLE_WHISPER_WEIGHT_TYPE_DICT = {}
for weight_type in self.SELECTABLE_WHISPER_WEIGHT_TYPE_LIST:
self._SELECTABLE_WHISPER_WEIGHT_TYPE_DICT[weight_type] = False
self._SELECTABLE_TRANSLATION_ENGINE_STATUS = {}
for engine in self.SELECTABLE_TRANSLATION_ENGINE_LIST:
self._SELECTABLE_TRANSLATION_ENGINE_STATUS[engine] = False
# Save Json Data
## Main Window