[bugfix] config.py AUTH_KEYESのsetterを修正
This commit is contained in:
@@ -316,7 +316,7 @@ class Config:
|
||||
if type(value) is dict and set(value.keys()) == set(self.AUTH_KEYS.keys()):
|
||||
for key, value in value.items():
|
||||
if type(value) is str:
|
||||
self._AUTH_KEYS[key] = value[key]
|
||||
self._AUTH_KEYS[key] = value
|
||||
save_json(self.PATH_CONFIG, inspect.currentframe().f_code.co_name, self.AUTH_KEYS)
|
||||
|
||||
@property
|
||||
|
||||
@@ -437,7 +437,9 @@ class ToplevelWindowConfig(CTkToplevel):
|
||||
value = self.entry_authkey.get()
|
||||
if len(value) > 0:
|
||||
if self.parent.translator.authentication("DeepL(auth)", value) is True:
|
||||
config.AUTH_KEYS["DeepL(auth)"] = value
|
||||
auth_keys = config.AUTH_KEYS
|
||||
auth_keys["DeepL(auth)"] = value
|
||||
config.AUTH_KEYS = auth_keys
|
||||
print_textbox(self.parent.textbox_message_log, "Auth key update completed", "INFO")
|
||||
print_textbox(self.parent.textbox_message_system_log, "Auth key update completed", "INFO")
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user