mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
simplify audio playing and drop exclude
This commit is contained in:
parent
1860c77b89
commit
fa818afedd
2 changed files with 1 additions and 4 deletions
|
@ -10,7 +10,6 @@ from aqt.qt import *
|
|||
QtConfig = pyqtconfig.Configuration()
|
||||
|
||||
from anki import Collection
|
||||
from anki.sound import playFromText, clearAudioQueue, stripSounds
|
||||
from anki.utils import stripHTML, checksum, isWin, isMac, intTime
|
||||
from anki.hooks import runHook, addHook, remHook
|
||||
import anki.consts
|
||||
|
|
|
@ -97,12 +97,10 @@ class Reviewer(object):
|
|||
playFromText(c.q())
|
||||
elif self.state == "answer":
|
||||
txt = ""
|
||||
exclude = c.q()
|
||||
if self._replayq(c):
|
||||
txt = c.q()
|
||||
exclude = ""
|
||||
txt += c.a()
|
||||
playFromText(txt, exclude)
|
||||
playFromText(txt)
|
||||
|
||||
# Initializing the webview
|
||||
##########################################################################
|
||||
|
|
Loading…
Reference in a new issue