🐛[bugfix] Model : Translation DeepL Pro版で認証できない問題を修正

This commit is contained in:
misyaguziya
2024-04-30 00:51:30 +09:00
parent 74f311fb2a
commit adf0272038

View File

@@ -577,7 +577,7 @@ def callbackSetCtranslate2WeightType(value):
def callbackSetDeeplAuthKey(value):
print("callbackSetDeeplAuthKey", str(value))
view.clearNotificationMessage()
if len(value) == 39:
if len(value) == 36 or len(value) == 39:
result = model.authenticationTranslatorDeepLAuthKey(auth_key=value)
if result is True:
key = value