mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
clear audio queue on question, not answer
This commit is contained in:
parent
af67f6fa9c
commit
7a4855233b
1 changed files with 2 additions and 2 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue