fix autoplay on the answer side

This commit is contained in:
Damien Elmes 2017-08-07 16:15:15 +10:00
parent 538119201c
commit dc81af96ac

View file

@ -199,10 +199,10 @@ The front of this card is empty. Please run Tools>Empty Cards.""")
self.state = "answer" self.state = "answer"
c = self.card c = self.card
a = c.a() a = c.a()
a = self._mungeQA(a)
# play audio? # play audio?
if self.autoplay(c): if self.autoplay(c):
playFromText(a) playFromText(a)
a = self._mungeQA(a)
# render and update bottom # render and update bottom
self.web.eval("_showAnswer(%s);" % json.dumps(a)) self.web.eval("_showAnswer(%s);" % json.dumps(a))
self._showEaseButtons() self._showEaseButtons()