Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
HIllya51 committed Dec 25, 2024
1 parent ac43a91 commit daccd71
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions py/LunaTranslator/gui/dialog_savedgame_setting.py
Original file line number Diff line number Diff line change
Expand Up @@ -608,19 +608,16 @@ def tagenewitem(
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:
Expand Down

0 comments on commit daccd71

Please sign in to comment.