support 2 buttons for one step lapse

This commit is contained in:
Damien Elmes 2012-04-17 23:06:32 +09:00
parent a52bb91007
commit aa45dd6031

View file

@ -525,11 +525,14 @@ function showAnswer(txt) {
return 2 return 2
def _answerButtonList(self): def _answerButtonList(self):
l = ((1, _("Again")), (2, _("Hard")), (3, _("Good"))) l = ((1, _("Again")),)
if self.mw.col.sched.answerButtons(self.card) == 4: cnt = self.mw.col.sched.answerButtons(self.card)
return l + ((4, _("Easy")),) if cnt == 2:
return l + ((2, _("Good")),)
elif cnt == 3:
return l + ((2, _("Good")), (3, _("Easy")))
else: else:
return l return l + ((2, _("Hard")), (3, _("Good")), (4, _("Easy")))
def _answerButtons(self): def _answerButtons(self):
times = [] times = []