mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2025-01-15 08:53:53 +08:00
.
This commit is contained in:
parent
ac43a918ea
commit
daccd717c2
@ -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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user