From aecf884473e0334067c907b702c3f06ee7bc61ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=81=8D=E5=85=AE=E6=83=9A=E5=85=AE?= <101191390+HIllya51@users.noreply.github.com> Date: Sun, 28 Jul 2024 20:56:23 +0800 Subject: [PATCH] fix --- LunaTranslator/LunaTranslator/myutils/config.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/LunaTranslator/LunaTranslator/myutils/config.py b/LunaTranslator/LunaTranslator/myutils/config.py index 494ec07e..95263af8 100644 --- a/LunaTranslator/LunaTranslator/myutils/config.py +++ b/LunaTranslator/LunaTranslator/myutils/config.py @@ -219,7 +219,10 @@ for uid in savehook_new_data: ] for k in _dfsavehook: if k not in savehook_new_data[uid]: - savehook_new_data[uid][k] = _dfsavehook[k].copy() + __v = _dfsavehook[k] + if isinstance(_dfsavehook[k], list) or isinstance(_dfsavehook[k], dict): + __v = __v.copy() + savehook_new_data[uid][k] = __v class __uid2gamepath: