🐛[bugfix] Controller : DeepL AuthKeyの認証タイミングを修正
This commit is contained in:
@@ -843,16 +843,18 @@ def createMainWindow():
|
|||||||
initSetConfigByExeArguments()
|
initSetConfigByExeArguments()
|
||||||
initSetTranslateEngine()
|
initSetTranslateEngine()
|
||||||
initSetLanguageAndCountry()
|
initSetLanguageAndCountry()
|
||||||
updateTranslationEngineAndEngineList()
|
|
||||||
|
|
||||||
if config.AUTH_KEYS["DeepL_API"] is not None:
|
if config.AUTH_KEYS["DeepL_API"] is not None:
|
||||||
if model.authenticationTranslatorDeepLAuthKey("DeepL_API", config.AUTH_KEYS["DeepL_API"]) is False:
|
if model.authenticationTranslatorDeepLAuthKey(auth_key=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 Translation Engine
|
||||||
|
updateTranslationEngineAndEngineList()
|
||||||
|
|
||||||
# set word filter
|
# set word filter
|
||||||
model.addKeywords()
|
model.addKeywords()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user