Ensure that previous_track for random is current_track
This commit is contained in:
parent
96a974ac4d
commit
8c145b52f7
@ -171,7 +171,7 @@ class BasePlaybackController(object):
|
|||||||
def previous_track(self):
|
def previous_track(self):
|
||||||
playlist = self.backend.current_playlist.playlist
|
playlist = self.backend.current_playlist.playlist
|
||||||
|
|
||||||
if self.repeat or self.consume:
|
if self.repeat or self.consume or self.random:
|
||||||
return self.current_track
|
return self.current_track
|
||||||
|
|
||||||
if self.current_track is None:
|
if self.current_track is None:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user