mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
make sure we don't mutate list passed to play_from_tags()
This commit is contained in:
parent
98802c9c9a
commit
7504ef6857
1 changed files with 1 additions and 1 deletions
|
@ -87,7 +87,7 @@ class AVPlayer:
|
||||||
|
|
||||||
def play_tags(self, tags: List[AVTag]) -> None:
|
def play_tags(self, tags: List[AVTag]) -> None:
|
||||||
"""Clear the existing queue, then start playing provided tags."""
|
"""Clear the existing queue, then start playing provided tags."""
|
||||||
self._enqueued = tags
|
self._enqueued = tags[:]
|
||||||
if self.interrupt_current_audio:
|
if self.interrupt_current_audio:
|
||||||
self._stop_if_playing()
|
self._stop_if_playing()
|
||||||
self._play_next_if_idle()
|
self._play_next_if_idle()
|
||||||
|
|
Loading…
Reference in a new issue