don't try to update if deck is currently closed (such as on sync)

This commit is contained in:
Damien Elmes 2009-01-22 02:36:45 +09:00
parent 6fac1e047f
commit 94f36ac4f2

View file

@ -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()