From daccd717c20ee106b92e37742f9981e331c08ffd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=81=8D=E5=85=AE=E6=83=9A=E5=85=AE?= <1173718158@qq.com> Date: Wed, 25 Dec 2024 20:07:46 +0800 Subject: [PATCH] . --- py/LunaTranslator/gui/dialog_savedgame_setting.py | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/py/LunaTranslator/gui/dialog_savedgame_setting.py b/py/LunaTranslator/gui/dialog_savedgame_setting.py index 7d31c15f..9455fbad 100644 --- a/py/LunaTranslator/gui/dialog_savedgame_setting.py +++ b/py/LunaTranslator/gui/dialog_savedgame_setting.py @@ -608,19 +608,16 @@ class dialog_setting_game_internal(QWidget): first=False, _type=tagitem.TYPE_SEARCH, ): - if _type == tagitem.TYPE_TAG: - text = globalconfig["tagNameRemap"].get(text, text) - qw = tagitem(text, True, _type) + qw = tagitem(globalconfig["tagNameRemap"].get(text, text) if _type == tagitem.TYPE_TAG else text, True, _type) - def __(gameuid, _qw, refkey, _): - t, _, _ = _ + def __(text, gameuid, _qw, refkey, _): try: - savehook_new_data[gameuid][refkey].remove(t) + savehook_new_data[gameuid][refkey].remove(text) self.flowwidget.removeWidget(_qw) except: print_exc() - qw.removesignal.connect(functools.partial(__, gameuid, qw, refkey)) + qw.removesignal.connect(functools.partial(__, text, gameuid, qw, refkey)) def safeaddtags(_): try: