This commit is contained in:
恍兮惚兮 2024-12-25 20:07:46 +08:00
parent ac43a918ea
commit daccd717c2

View File

@ -608,19 +608,16 @@ class dialog_setting_game_internal(QWidget):
first=False, first=False,
_type=tagitem.TYPE_SEARCH, _type=tagitem.TYPE_SEARCH,
): ):
if _type == tagitem.TYPE_TAG: qw = tagitem(globalconfig["tagNameRemap"].get(text, text) if _type == tagitem.TYPE_TAG else text, True, _type)
text = globalconfig["tagNameRemap"].get(text, text)
qw = tagitem(text, True, _type)
def __(gameuid, _qw, refkey, _): def __(text, gameuid, _qw, refkey, _):
t, _, _ = _
try: try:
savehook_new_data[gameuid][refkey].remove(t) savehook_new_data[gameuid][refkey].remove(text)
self.flowwidget.removeWidget(_qw) self.flowwidget.removeWidget(_qw)
except: except:
print_exc() print_exc()
qw.removesignal.connect(functools.partial(__, gameuid, qw, refkey)) qw.removesignal.connect(functools.partial(__, text, gameuid, qw, refkey))
def safeaddtags(_): def safeaddtags(_):
try: try: