mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 22:42:25 -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"))
|
||||
return '<img src="%s">' % name
|
||||
else:
|
||||
anki.sound.clearAudioQueue()
|
||||
anki.sound.play(fname)
|
||||
return '[sound:%s]' % fname
|
||||
|
||||
|
|
Loading…
Reference in a new issue