From f480ecea0cc8bda77b0837aac815df7abf6234fb Mon Sep 17 00:00:00 2001 From: Abdo Date: Fri, 19 Jan 2024 08:49:16 +0300 Subject: [PATCH] Default to 'Bury Card' action consistently (#2950) --- qt/aqt/reviewer.py | 10 +++++----- rslib/src/deckconfig/schema11.rs | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/qt/aqt/reviewer.py b/qt/aqt/reviewer.py index 6f4d9fdeb..f4bdafe76 100644 --- a/qt/aqt/reviewer.py +++ b/qt/aqt/reviewer.py @@ -497,17 +497,17 @@ class Reviewer: try: answer_action = list(AnswerAction)[conf["answerAction"]] except IndexError: - answer_action = AnswerAction.ANSWER_GOOD - if answer_action == AnswerAction.BURY_CARD: - self.bury_current_card() - elif answer_action == AnswerAction.ANSWER_AGAIN: + answer_action = AnswerAction.BURY_CARD + if answer_action == AnswerAction.ANSWER_AGAIN: self._answerCard(1) elif answer_action == AnswerAction.ANSWER_HARD: self._answerCard(2) + elif answer_action == AnswerAction.ANSWER_GOOD: + self._answerCard(3) elif answer_action == AnswerAction.SHOW_REMINDER: tooltip(tr.studying_answer_time_elapsed()) else: - self._answerCard(3) + self.bury_current_card() # Answering a card ############################################################ diff --git a/rslib/src/deckconfig/schema11.rs b/rslib/src/deckconfig/schema11.rs index b4ca15c43..daca7d7ac 100644 --- a/rslib/src/deckconfig/schema11.rs +++ b/rslib/src/deckconfig/schema11.rs @@ -420,11 +420,11 @@ impl From for DeckConfSchema11 { seconds_to_show_question: i.seconds_to_show_question, seconds_to_show_answer: i.seconds_to_show_answer, answer_action: match i.answer_action { - 0 => AnswerAction::BuryCard, 1 => AnswerAction::AnswerAgain, + 2 => AnswerAction::AnswerGood, 3 => AnswerAction::AnswerHard, 4 => AnswerAction::ShowReminder, - _ => AnswerAction::AnswerGood, + _ => AnswerAction::BuryCard, }, wait_for_audio: i.wait_for_audio, replayq: !i.skip_question_when_replaying_answer,