mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
Fix default_deck_for_notetype handling
This commit is contained in:
parent
800144dc67
commit
8b144ca238
2 changed files with 2 additions and 1 deletions
|
@ -974,6 +974,7 @@ exposed_backend_list = [
|
||||||
"new_note",
|
"new_note",
|
||||||
"note_fields_check",
|
"note_fields_check",
|
||||||
"defaults_for_adding",
|
"defaults_for_adding",
|
||||||
|
"default_deck_for_notetype",
|
||||||
# NotetypesService
|
# NotetypesService
|
||||||
"get_notetype",
|
"get_notetype",
|
||||||
"get_notetype_names",
|
"get_notetype_names",
|
||||||
|
|
|
@ -309,7 +309,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
if (
|
if (
|
||||||
!(await getConfigBool({
|
!(await getConfigBool({
|
||||||
key: ConfigKey_Bool.ADDING_DEFAULTS_TO_CURRENT_DECK,
|
key: ConfigKey_Bool.ADDING_DEFAULTS_TO_CURRENT_DECK,
|
||||||
}))
|
})).val
|
||||||
) {
|
) {
|
||||||
const deckId = await defaultDeckForNotetype({ ntid: notetype.id });
|
const deckId = await defaultDeckForNotetype({ ntid: notetype.id });
|
||||||
deckChooser.select(deckId.did);
|
deckChooser.select(deckId.did);
|
||||||
|
|
Loading…
Reference in a new issue