always play audio in card layout; fix openPluginFolder on win32

This commit is contained in:
Damien Elmes 2011-01-18 01:53:41 +09:00
parent e8a03cbd1d
commit e93e29e45a
2 changed files with 2 additions and 4 deletions

View file

@ -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

View file

@ -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))