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

View file

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