mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 01:06:35 -04:00
don't put dyn=False in schema11 dconf's "other"
This commit is contained in:
parent
49971d0235
commit
3484897229
1 changed files with 4 additions and 0 deletions
|
@ -30,6 +30,8 @@ pub struct DeckConfSchema11 {
|
||||||
pub(crate) new: NewConfSchema11,
|
pub(crate) new: NewConfSchema11,
|
||||||
pub(crate) rev: RevConfSchema11,
|
pub(crate) rev: RevConfSchema11,
|
||||||
pub(crate) lapse: LapseConfSchema11,
|
pub(crate) lapse: LapseConfSchema11,
|
||||||
|
#[serde(rename = "dyn", default, deserialize_with = "default_on_invalid")]
|
||||||
|
dynamic: bool,
|
||||||
#[serde(flatten)]
|
#[serde(flatten)]
|
||||||
other: HashMap<String, Value>,
|
other: HashMap<String, Value>,
|
||||||
}
|
}
|
||||||
|
@ -184,6 +186,7 @@ impl Default for DeckConfSchema11 {
|
||||||
autoplay: true,
|
autoplay: true,
|
||||||
timer: 0,
|
timer: 0,
|
||||||
replayq: true,
|
replayq: true,
|
||||||
|
dynamic: false,
|
||||||
new: Default::default(),
|
new: Default::default(),
|
||||||
rev: Default::default(),
|
rev: Default::default(),
|
||||||
lapse: Default::default(),
|
lapse: Default::default(),
|
||||||
|
@ -291,6 +294,7 @@ impl From<DeckConf> for DeckConfSchema11 {
|
||||||
autoplay: !i.disable_autoplay,
|
autoplay: !i.disable_autoplay,
|
||||||
timer: i.visible_timer_secs as u8,
|
timer: i.visible_timer_secs as u8,
|
||||||
replayq: !i.skip_question_when_replaying_answer,
|
replayq: !i.skip_question_when_replaying_answer,
|
||||||
|
dynamic: false,
|
||||||
new: NewConfSchema11 {
|
new: NewConfSchema11 {
|
||||||
bury: i.bury_new,
|
bury: i.bury_new,
|
||||||
delays: i.learn_steps,
|
delays: i.learn_steps,
|
||||||
|
|
Loading…
Reference in a new issue