mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 06:52:21 -04:00
make sure we clear the queue when previewing attached
This commit is contained in:
parent
f9f5a3d9f6
commit
78d7ae388e
1 changed files with 1 additions and 0 deletions
|
@ -560,6 +560,7 @@ to a cloze type first, via Edit>Change Note Type."""))
|
||||||
name = urllib.parse.quote(fname.encode("utf8"))
|
name = urllib.parse.quote(fname.encode("utf8"))
|
||||||
return '<img src="%s">' % name
|
return '<img src="%s">' % name
|
||||||
else:
|
else:
|
||||||
|
anki.sound.clearAudioQueue()
|
||||||
anki.sound.play(fname)
|
anki.sound.play(fname)
|
||||||
return '[sound:%s]' % fname
|
return '[sound:%s]' % fname
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue