option to strip question audio when replaying answer

This commit is contained in:
Damien Elmes 2012-04-24 15:36:15 +09:00
parent c308141339
commit bae48af863

View file

@ -92,7 +92,11 @@ class Reviewer(object):
if self.state == "question":
playFromText(c.q())
elif self.state == "answer":
playFromText(c.q() + c.a())
txt = ""
if self.mw.col.conf.get("replayBoth", True):
txt = c.q()
txt += c.a()
playFromText(txt)
# Initializing the webview
##########################################################################