Skip to content

Commit

Permalink
fix, server: reset cursor when loading other playlist
Browse files Browse the repository at this point in the history
  • Loading branch information
dxstiny committed Feb 27, 2024
1 parent 697a3cd commit 883c59c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/server/player/playerQueue.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ def load(self, playlist: IPlayerPlaylist) -> None:
"""load playlist"""
self._playlist = playlist
self._songs = list(playlist)
self._cursor = -1
self._resetQueue()
self._fireOnChanged()

Expand Down

0 comments on commit 883c59c

Please sign in to comment.