mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
support 2 buttons for one step lapse
This commit is contained in:
parent
a52bb91007
commit
aa45dd6031
1 changed files with 7 additions and 4 deletions
|
@ -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 = []
|
||||||
|
|
Loading…
Reference in a new issue