From aa45dd60315191f090f311241fc1806f858e355e Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Tue, 17 Apr 2012 23:06:32 +0900 Subject: [PATCH] support 2 buttons for one step lapse --- aqt/reviewer.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/aqt/reviewer.py b/aqt/reviewer.py index f3b9ad188..c1b560911 100644 --- a/aqt/reviewer.py +++ b/aqt/reviewer.py @@ -525,11 +525,14 @@ function showAnswer(txt) { return 2 def _answerButtonList(self): - l = ((1, _("Again")), (2, _("Hard")), (3, _("Good"))) - if self.mw.col.sched.answerButtons(self.card) == 4: - return l + ((4, _("Easy")),) + l = ((1, _("Again")),) + cnt = self.mw.col.sched.answerButtons(self.card) + if cnt == 2: + return l + ((2, _("Good")),) + elif cnt == 3: + return l + ((2, _("Good")), (3, _("Easy"))) else: - return l + return l + ((2, _("Hard")), (3, _("Good")), (4, _("Easy"))) def _answerButtons(self): times = []