mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-29 16:44:13 +08:00
fix
This commit is contained in:
parent
fbe2f9559d
commit
0486332653
@ -1028,21 +1028,33 @@ class dialog_setting_game_internal(QWidget):
|
|||||||
__extraw.setEnabled(
|
__extraw.setEnabled(
|
||||||
not savehook_new_data[gameuid]["follow_default_ankisettings"]
|
not savehook_new_data[gameuid]["follow_default_ankisettings"]
|
||||||
)
|
)
|
||||||
savehook_new_data[gameuid]["anki_DeckName"] = globalconfig["ankiconnect"][
|
savehook_new_data[gameuid]["anki_DeckName"] = savehook_new_data[gameuid].get(
|
||||||
"DeckName"
|
"anki_DeckName", globalconfig["ankiconnect"]["DeckName"]
|
||||||
]
|
)
|
||||||
savehook_new_data[gameuid]["anki_simulate_key_1_use"] = globalconfig[
|
savehook_new_data[gameuid]["anki_simulate_key_1_use"] = savehook_new_data[
|
||||||
"ankiconnect"
|
gameuid
|
||||||
]["simulate_key"]["1"]["use"]
|
].get(
|
||||||
savehook_new_data[gameuid]["anki_simulate_key_1_keystring"] = globalconfig[
|
"anki_simulate_key_1_use",
|
||||||
"ankiconnect"
|
globalconfig["ankiconnect"]["simulate_key"]["1"]["use"],
|
||||||
]["simulate_key"]["1"]["keystring"]
|
)
|
||||||
savehook_new_data[gameuid]["anki_simulate_key_2_use"] = globalconfig[
|
savehook_new_data[gameuid]["anki_simulate_key_1_keystring"] = savehook_new_data[
|
||||||
"ankiconnect"
|
gameuid
|
||||||
]["simulate_key"]["2"]["use"]
|
].get(
|
||||||
savehook_new_data[gameuid]["anki_simulate_key_2_keystring"] = globalconfig[
|
"anki_simulate_key_1_keystring",
|
||||||
"ankiconnect"
|
globalconfig["ankiconnect"]["simulate_key"]["1"]["keystring"],
|
||||||
]["simulate_key"]["2"]["keystring"]
|
)
|
||||||
|
savehook_new_data[gameuid]["anki_simulate_key_2_use"] = savehook_new_data[
|
||||||
|
gameuid
|
||||||
|
].get(
|
||||||
|
"anki_simulate_key_2_use",
|
||||||
|
globalconfig["ankiconnect"]["simulate_key"]["2"]["use"],
|
||||||
|
)
|
||||||
|
savehook_new_data[gameuid]["anki_simulate_key_2_keystring"] = savehook_new_data[
|
||||||
|
gameuid
|
||||||
|
].get(
|
||||||
|
"anki_simulate_key_2_keystring",
|
||||||
|
globalconfig["ankiconnect"]["simulate_key"]["2"]["keystring"],
|
||||||
|
)
|
||||||
|
|
||||||
formLayout.addRow(__extraw)
|
formLayout.addRow(__extraw)
|
||||||
formLayout2 = QFormLayout()
|
formLayout2 = QFormLayout()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user