mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-29 00:24:13 +08:00
fix
This commit is contained in:
parent
8b8f117e70
commit
9a3b3447be
@ -217,12 +217,11 @@ for uid in savehook_new_data:
|
||||
savehook_new_data[uid]["private_tgtlang_2"] = oldlanguage[
|
||||
savehook_new_data[uid]["private_tgtlang"]
|
||||
]
|
||||
for k in _dfsavehook:
|
||||
if k not in savehook_new_data[uid]:
|
||||
__v = _dfsavehook[k]
|
||||
if isinstance(_dfsavehook[k], (list, dict)):
|
||||
for __k, __v in _dfsavehook.items():
|
||||
if __k not in savehook_new_data[uid]:
|
||||
if isinstance(__v, (list, dict)):
|
||||
__v = __v.copy()
|
||||
savehook_new_data[uid][k] = __v
|
||||
savehook_new_data[uid][__k] = __v
|
||||
|
||||
|
||||
class __uid2gamepath:
|
||||
|
Loading…
x
Reference in New Issue
Block a user