This commit is contained in:
恍兮惚兮 2024-08-11 03:28:34 +08:00
parent d0d002ee45
commit 979ce5cf03

View File

@ -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", "")