mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
always play audio in card layout; fix openPluginFolder on win32
This commit is contained in:
parent
e8a03cbd1d
commit
e93e29e45a
2 changed files with 2 additions and 4 deletions
|
@ -297,7 +297,7 @@ order by n""", id=card.id)
|
|||
c)
|
||||
+ "</body></html>")
|
||||
clearAudioQueue()
|
||||
if not self.playedAudio and self.mw.config['autoplaySounds']:
|
||||
if not self.playedAudio:
|
||||
playFromText(c.question)
|
||||
playFromText(c.answer)
|
||||
self.playedAudio = True
|
||||
|
|
|
@ -2739,9 +2739,7 @@ to work with this version of Anki."""))
|
|||
if path is None:
|
||||
path = self.pluginsFolder()
|
||||
if sys.platform == "win32":
|
||||
anki.utils.call(["explorer", path.encode(
|
||||
sys.getfilesystemencoding())],
|
||||
wait=False)
|
||||
anki.utils.call(["explorer", path], wait=False)
|
||||
else:
|
||||
QDesktopServices.openUrl(QUrl("file://" + path))
|
||||
|
||||
|
|
Loading…
Reference in a new issue