mirror of
https://github.com/ankitects/anki.git
synced 2025-09-23 08:22:24 -04:00
work around a strange bug in status
This commit is contained in:
parent
2661c1d3a2
commit
f9aa21aeea
1 changed files with 8 additions and 9 deletions
|
@ -242,14 +242,13 @@ You should aim to answer each question within<br>
|
||||||
if not self.timer:
|
if not self.timer:
|
||||||
return
|
return
|
||||||
if self.main.state in ("showQuestion", "showAnswer"):
|
if self.main.state in ("showQuestion", "showAnswer"):
|
||||||
|
if self.main.currentCard:
|
||||||
t = self.main.currentCard.thinkingTime()
|
t = self.main.currentCard.thinkingTime()
|
||||||
if t < 60:
|
if t < 60:
|
||||||
self.timer.setText('00:%02d' % t)
|
self.timer.setText('00:%02d' % t)
|
||||||
else:
|
else:
|
||||||
self.timer.setText('01:00')
|
self.timer.setText('01:00')
|
||||||
elif self.main.state == "showAnswer":
|
return
|
||||||
pass
|
|
||||||
else:
|
|
||||||
self.timer.setText("00:00")
|
self.timer.setText("00:00")
|
||||||
|
|
||||||
def onConfigure(self):
|
def onConfigure(self):
|
||||||
|
|
Loading…
Reference in a new issue