mirror of
https://github.com/ankitects/anki.git
synced 2025-12-13 06:46:55 -05:00
don't stop timer on answer
This commit is contained in:
parent
31febf6a31
commit
26d54c8a4c
2 changed files with 1 additions and 2 deletions
|
|
@ -186,7 +186,6 @@ class AnkiQt(QMainWindow):
|
||||||
self.updateMarkAction()
|
self.updateMarkAction()
|
||||||
self.runHook('showQuestion')
|
self.runHook('showQuestion')
|
||||||
elif state == "showAnswer":
|
elif state == "showAnswer":
|
||||||
self.currentCard.stopTimer()
|
|
||||||
self.resetButtons()
|
self.resetButtons()
|
||||||
self.showEaseButtons()
|
self.showEaseButtons()
|
||||||
self.enableCardMenuItems()
|
self.enableCardMenuItems()
|
||||||
|
|
|
||||||
|
|
@ -241,7 +241,7 @@ You should aim to answer each question within<br>
|
||||||
return
|
return
|
||||||
if not self.timer:
|
if not self.timer:
|
||||||
return
|
return
|
||||||
if self.main.state in "showQuestion":
|
if self.main.state in ("showQuestion", "showAnswer"):
|
||||||
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)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue