clear audio queue on question, not answer

This commit is contained in:
Damien Elmes 2009-05-30 19:08:03 +09:00
parent af67f6fa9c
commit 7a4855233b

View file

@ -275,6 +275,8 @@ Please do not file a bug report with Anki.<br>""")
# hide all deck-associated dialogs
self.closeAllDeckWindows()
elif state == "getQuestion":
# stop anything playing
clearAudioQueue()
if self.deck.isEmpty():
return self.moveToState("deckEmpty")
else:
@ -414,8 +416,6 @@ Please do not file a bug report with Anki.<br>""")
stats = self.deck.getStats()
if stats['gTotal'] % num == 0:
self.save()
# stop anything playing
clearAudioQueue()
self.moveToState("getQuestion")
def startRefreshTimer(self):