This commit is contained in:
恍兮惚兮 2024-07-28 23:35:06 +08:00
parent 8b8f117e70
commit 9a3b3447be

View File

@ -217,12 +217,11 @@ for uid in savehook_new_data:
savehook_new_data[uid]["private_tgtlang_2"] = oldlanguage[ savehook_new_data[uid]["private_tgtlang_2"] = oldlanguage[
savehook_new_data[uid]["private_tgtlang"] savehook_new_data[uid]["private_tgtlang"]
] ]
for k in _dfsavehook: for __k, __v in _dfsavehook.items():
if k not in savehook_new_data[uid]: if __k not in savehook_new_data[uid]:
__v = _dfsavehook[k] if isinstance(__v, (list, dict)):
if isinstance(_dfsavehook[k], (list, dict)):
__v = __v.copy() __v = __v.copy()
savehook_new_data[uid][k] = __v savehook_new_data[uid][__k] = __v
class __uid2gamepath: class __uid2gamepath: