mirror of
https://github.com/ankitects/anki.git
synced 2025-09-23 16:26:40 -04:00
don't try to update if deck is currently closed (such as on sync)
This commit is contained in:
parent
6fac1e047f
commit
94f36ac4f2
1 changed files with 2 additions and 0 deletions
|
@ -264,6 +264,8 @@ You should aim to answer each question within<br>
|
|||
self.timerFlashStart = time.time()
|
||||
|
||||
def updateCount(self):
|
||||
if not self.main.deck:
|
||||
return
|
||||
if self.state in ("showQuestion", "showAnswer"):
|
||||
self.main.deck.checkDue()
|
||||
self.redraw()
|
||||
|
|
Loading…
Reference in a new issue