Simplify logic in on_current_playlist_change
This commit is contained in:
parent
1d25a2ddea
commit
6e3f4a0fbb
@ -331,13 +331,11 @@ class BasePlaybackController(object):
|
||||
self._first_shuffle = True
|
||||
self._shuffled = []
|
||||
|
||||
if not self.backend.current_playlist.cp_tracks:
|
||||
self.stop()
|
||||
self.current_cp_track = None
|
||||
elif (self.current_cp_track not in
|
||||
if (not self.backend.current_playlist.cp_tracks or
|
||||
self.current_cp_track not in
|
||||
self.backend.current_playlist.cp_tracks):
|
||||
self.current_cp_track = None
|
||||
self.stop()
|
||||
self.current_cp_track = None
|
||||
|
||||
def next(self):
|
||||
"""Play the next track."""
|
||||
|
||||
Loading…
Reference in New Issue
Block a user