update stats in study screen too

This commit is contained in:
Damien Elmes 2009-04-07 11:32:08 +09:00
parent 9418b62c7a
commit 56472da83f

View file

@ -264,9 +264,11 @@ You should aim to answer each question within<br>
def updateCount(self): def updateCount(self):
if not self.main.deck: if not self.main.deck:
return return
if self.state in ("showQuestion", "showAnswer"): if self.state in ("showQuestion", "showAnswer", "studyScreen"):
self.main.deck.checkDue() self.main.deck.checkDue()
self.redraw() self.redraw()
if self.state == "studyScreen":
self.main.updateStudyStats()
def setTimer(self, txt): def setTimer(self, txt):
self.timer.setText("<qt>" + txt + "&nbsp;") self.timer.setText("<qt>" + txt + "&nbsp;")