mirror of
https://github.com/ankitects/anki.git
synced 2026-01-09 03:53:55 -05:00
./check
This commit is contained in:
parent
49a65621f2
commit
e9a02f29f5
1 changed files with 14 additions and 11 deletions
|
|
@ -406,18 +406,21 @@ impl crate::services::SchedulerService for Collection {
|
||||||
let deck_config = self.deck_config_for_card(&next_card.card)?;
|
let deck_config = self.deck_config_for_card(&next_card.card)?;
|
||||||
|
|
||||||
let render = self.render_existing_card(cid, false, true)?;
|
let render = self.render_existing_card(cid, false, true)?;
|
||||||
let show_due = self.get_config_bool(BoolKey::ShowIntervalsAboveAnswerButtons);
|
let show_due = self.get_config_bool(BoolKey::ShowIntervalsAboveAnswerButtons);
|
||||||
|
|
||||||
let answer_buttons =
|
let answer_buttons = self
|
||||||
self.describe_next_states(&next_card.states)?
|
.describe_next_states(&next_card.states)?
|
||||||
.into_iter()
|
.into_iter()
|
||||||
.enumerate()
|
.enumerate()
|
||||||
.map(|(i, due)| AnswerButton {
|
.map(|(i, due)| AnswerButton {
|
||||||
rating: i as i32,
|
rating: i as i32,
|
||||||
due: if show_due { due } else { "\u{00A0}".to_string() /*   */ }
|
due: if show_due {
|
||||||
})
|
due
|
||||||
.collect();
|
} else {
|
||||||
|
"\u{00A0}".to_string() /*   */
|
||||||
|
},
|
||||||
|
})
|
||||||
|
.collect();
|
||||||
|
|
||||||
// Typed answer replacements
|
// Typed answer replacements
|
||||||
static ANSWER_REGEX: LazyLock<Regex> =
|
static ANSWER_REGEX: LazyLock<Regex> =
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue