mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2025-01-01 10:04:12 +08:00
fix
This commit is contained in:
parent
d0d002ee45
commit
979ce5cf03
@ -468,13 +468,12 @@ for key in ___:
|
|||||||
globalconfig["toolbutton"]["rank2"].remove(key)
|
globalconfig["toolbutton"]["rank2"].remove(key)
|
||||||
|
|
||||||
if "DeckName" in globalconfig["ankiconnect"]:
|
if "DeckName" in globalconfig["ankiconnect"]:
|
||||||
|
deckname = globalconfig["ankiconnect"].pop("DeckName")
|
||||||
if (
|
if (
|
||||||
globalconfig["ankiconnect"]["DeckName"]
|
globalconfig["ankiconnect"]["DeckName"]
|
||||||
not in globalconfig["ankiconnect"]["DeckNameS"]
|
not in globalconfig["ankiconnect"]["DeckNameS"]
|
||||||
):
|
):
|
||||||
globalconfig["ankiconnect"]["DeckNameS"].append(
|
globalconfig["ankiconnect"]["DeckNameS"].append(deckname)
|
||||||
globalconfig["ankiconnect"].pop("DeckName")
|
|
||||||
)
|
|
||||||
|
|
||||||
for data in savehook_new_data.values():
|
for data in savehook_new_data.values():
|
||||||
deck = data.get("anki_DeckName", "")
|
deck = data.get("anki_DeckName", "")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user