mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 06:52:21 -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)
|
c)
|
||||||
+ "</body></html>")
|
+ "</body></html>")
|
||||||
clearAudioQueue()
|
clearAudioQueue()
|
||||||
if not self.playedAudio and self.mw.config['autoplaySounds']:
|
if not self.playedAudio:
|
||||||
playFromText(c.question)
|
playFromText(c.question)
|
||||||
playFromText(c.answer)
|
playFromText(c.answer)
|
||||||
self.playedAudio = True
|
self.playedAudio = True
|
||||||
|
|
|
@ -2739,9 +2739,7 @@ to work with this version of Anki."""))
|
||||||
if path is None:
|
if path is None:
|
||||||
path = self.pluginsFolder()
|
path = self.pluginsFolder()
|
||||||
if sys.platform == "win32":
|
if sys.platform == "win32":
|
||||||
anki.utils.call(["explorer", path.encode(
|
anki.utils.call(["explorer", path], wait=False)
|
||||||
sys.getfilesystemencoding())],
|
|
||||||
wait=False)
|
|
||||||
else:
|
else:
|
||||||
QDesktopServices.openUrl(QUrl("file://" + path))
|
QDesktopServices.openUrl(QUrl("file://" + path))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue