diff --git a/qt/aqt/editor.py b/qt/aqt/editor.py index b9d15a221..306fa3095 100644 --- a/qt/aqt/editor.py +++ b/qt/aqt/editor.py @@ -741,6 +741,7 @@ to a cloze type first, via 'Notes>Change Note Type'""" ) return if file: + av_player.play_file(file) self.addMedia(file) # Media downloads @@ -758,7 +759,6 @@ to a cloze type first, via 'Notes>Change Note Type'""" name = urllib.parse.quote(fname.encode("utf8")) return '' % name else: - av_player.play_file(fname) return "[sound:%s]" % fname def urlToFile(self, url: str) -> Optional[str]: