👍[Update] Model : DeepL_APIの認証処理の条件を修正
This commit is contained in:
@@ -649,9 +649,6 @@ class Config:
|
|||||||
self._OSC_PORT = 9000
|
self._OSC_PORT = 9000
|
||||||
self._AUTH_KEYS = {
|
self._AUTH_KEYS = {
|
||||||
"DeepL_API": None,
|
"DeepL_API": None,
|
||||||
"DeepL": None,
|
|
||||||
"Bing": None,
|
|
||||||
"Google": None,
|
|
||||||
}
|
}
|
||||||
self._WEIGHT_TYPE = "small"
|
self._WEIGHT_TYPE = "small"
|
||||||
self._MESSAGE_FORMAT = "[message]([translation])"
|
self._MESSAGE_FORMAT = "[message]([translation])"
|
||||||
|
|||||||
@@ -728,14 +728,13 @@ def createMainWindow():
|
|||||||
initSetTranslateEngine()
|
initSetTranslateEngine()
|
||||||
initSetLanguageAndCountry()
|
initSetLanguageAndCountry()
|
||||||
|
|
||||||
# if (config.SELECTED_TAB_YOUR_TRANSLATOR_ENGINES[config.SELECTED_TAB_NO] == "DeepL_API" or
|
if config.AUTH_KEYS["DeepL_API"] is not None:
|
||||||
# config.SELECTED_TAB_TARGET_TRANSLATOR_ENGINES[config.SELECTED_TAB_NO] == "DeepL_API"):
|
if model.authenticationTranslatorDeepLAuthKey("DeepL_API", config.AUTH_KEYS["DeepL_API"]) is False:
|
||||||
# if model.authenticationTranslator("DeepL_API", config.AUTH_KEYS["DeepL_API"]) is False:
|
# error update Auth key
|
||||||
# # error update Auth key
|
auth_keys = config.AUTH_KEYS
|
||||||
# auth_keys = config.AUTH_KEYS
|
auth_keys["DeepL_API"] = None
|
||||||
# auth_keys["DeepL_API"] = None
|
config.AUTH_KEYS = auth_keys
|
||||||
# config.AUTH_KEYS = auth_keys
|
view.printToTextbox_AuthenticationError()
|
||||||
# view.printToTextbox_AuthenticationError()
|
|
||||||
|
|
||||||
# set word filter
|
# set word filter
|
||||||
model.addKeywords()
|
model.addKeywords()
|
||||||
|
|||||||
Reference in New Issue
Block a user