From 28d86ab8d12e7adeb1b1a4eb0661f1342c555852 Mon Sep 17 00:00:00 2001 From: ANH Date: Tue, 25 Aug 2020 15:56:31 +0300 Subject: [PATCH] editor: only autoplay added media when recording --- 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 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]: