From adf027203883df7c2baec755f7a0a0b57a1aeff3 Mon Sep 17 00:00:00 2001 From: misyaguziya Date: Tue, 30 Apr 2024 00:51:30 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B[bugfix]=20Model=20:=20Translation?= =?UTF-8?q?=20DeepL=20Pro=E7=89=88=E3=81=A7=E8=AA=8D=E8=A8=BC=E3=81=A7?= =?UTF-8?q?=E3=81=8D=E3=81=AA=E3=81=84=E5=95=8F=E9=A1=8C=E3=82=92=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controller.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controller.py b/controller.py index dbc88560..90cd93f5 100644 --- a/controller.py +++ b/controller.py @@ -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