Default to 'Bury Card' action consistently (#2950)
This commit is contained in:
parent
8afd6480cb
commit
f480ecea0c
@ -497,17 +497,17 @@ class Reviewer:
|
|||||||
try:
|
try:
|
||||||
answer_action = list(AnswerAction)[conf["answerAction"]]
|
answer_action = list(AnswerAction)[conf["answerAction"]]
|
||||||
except IndexError:
|
except IndexError:
|
||||||
answer_action = AnswerAction.ANSWER_GOOD
|
answer_action = AnswerAction.BURY_CARD
|
||||||
if answer_action == AnswerAction.BURY_CARD:
|
if answer_action == AnswerAction.ANSWER_AGAIN:
|
||||||
self.bury_current_card()
|
|
||||||
elif answer_action == AnswerAction.ANSWER_AGAIN:
|
|
||||||
self._answerCard(1)
|
self._answerCard(1)
|
||||||
elif answer_action == AnswerAction.ANSWER_HARD:
|
elif answer_action == AnswerAction.ANSWER_HARD:
|
||||||
self._answerCard(2)
|
self._answerCard(2)
|
||||||
|
elif answer_action == AnswerAction.ANSWER_GOOD:
|
||||||
|
self._answerCard(3)
|
||||||
elif answer_action == AnswerAction.SHOW_REMINDER:
|
elif answer_action == AnswerAction.SHOW_REMINDER:
|
||||||
tooltip(tr.studying_answer_time_elapsed())
|
tooltip(tr.studying_answer_time_elapsed())
|
||||||
else:
|
else:
|
||||||
self._answerCard(3)
|
self.bury_current_card()
|
||||||
|
|
||||||
# Answering a card
|
# Answering a card
|
||||||
############################################################
|
############################################################
|
||||||
|
@ -420,11 +420,11 @@ impl From<DeckConfig> for DeckConfSchema11 {
|
|||||||
seconds_to_show_question: i.seconds_to_show_question,
|
seconds_to_show_question: i.seconds_to_show_question,
|
||||||
seconds_to_show_answer: i.seconds_to_show_answer,
|
seconds_to_show_answer: i.seconds_to_show_answer,
|
||||||
answer_action: match i.answer_action {
|
answer_action: match i.answer_action {
|
||||||
0 => AnswerAction::BuryCard,
|
|
||||||
1 => AnswerAction::AnswerAgain,
|
1 => AnswerAction::AnswerAgain,
|
||||||
|
2 => AnswerAction::AnswerGood,
|
||||||
3 => AnswerAction::AnswerHard,
|
3 => AnswerAction::AnswerHard,
|
||||||
4 => AnswerAction::ShowReminder,
|
4 => AnswerAction::ShowReminder,
|
||||||
_ => AnswerAction::AnswerGood,
|
_ => AnswerAction::BuryCard,
|
||||||
},
|
},
|
||||||
wait_for_audio: i.wait_for_audio,
|
wait_for_audio: i.wait_for_audio,
|
||||||
replayq: !i.skip_question_when_replaying_answer,
|
replayq: !i.skip_question_when_replaying_answer,
|
||||||
|
Loading…
Reference in New Issue
Block a user