mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
fix replay audio in question
This commit is contained in:
parent
be0ce798d6
commit
7ee6032b81
1 changed files with 2 additions and 1 deletions
|
@ -2514,7 +2514,8 @@ it to your friends.
|
||||||
|
|
||||||
def onRepeatAudio(self):
|
def onRepeatAudio(self):
|
||||||
clearAudioQueue()
|
clearAudioQueue()
|
||||||
if not self.currentCard.cardModel.questionInAnswer:
|
if (not self.currentCard.cardModel.questionInAnswer
|
||||||
|
or self.state == "showQuestion"):
|
||||||
playFromText(self.currentCard.question)
|
playFromText(self.currentCard.question)
|
||||||
if self.state != "showQuestion":
|
if self.state != "showQuestion":
|
||||||
playFromText(self.currentCard.answer)
|
playFromText(self.currentCard.answer)
|
||||||
|
|
Loading…
Reference in a new issue