From dc1f489d3e8fb65e09936a0a46113d039dd688ba Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Fri, 4 Sep 2020 08:34:26 +1000 Subject: [PATCH] Revert "Merge pull request #749 from ANH25/editor-media-autoplay" This reverts commit 9aa3d7867e184f3c8d91e9e5686d2881bc9b2cba, reversing changes made to c3a1acb524433611b66a58f693ef56324104673f. https://github.com/ankitects/anki/pull/749#issuecomment-686385112 --- qt/aqt/editor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qt/aqt/editor.py b/qt/aqt/editor.py index 2a980d037..eb587f00a 100644 --- a/qt/aqt/editor.py +++ b/qt/aqt/editor.py @@ -743,7 +743,6 @@ to a cloze type first, via 'Notes>Change Note Type'""" ) return if file: - av_player.play_file(file) self.addMedia(file) # Media downloads @@ -761,6 +760,7 @@ 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]: