Replaced shit that got removed in the last commit with something better.
This commit is contained in:
parent
bedca22ca6
commit
d36326c029
1 changed files with 6 additions and 1 deletions
|
@ -85,7 +85,12 @@ class TrackControl(QToolBar):
|
||||||
self.app.player.start_playing()
|
self.app.player.start_playing()
|
||||||
|
|
||||||
elif self.app.player.current_playlist is None:
|
elif self.app.player.current_playlist is None:
|
||||||
pass #self.app.player.start_playlist(self.app.gui.clicked_playlist)
|
if self.app.settings.latest_playlist is not None:
|
||||||
|
for playlist in self.app.library.playlists:
|
||||||
|
if playlist.path == self.app.settings.latest_playlist:
|
||||||
|
self.app.player.start_playlist(playlist)
|
||||||
|
|
||||||
|
break
|
||||||
|
|
||||||
def on_playstate_update(self):
|
def on_playstate_update(self):
|
||||||
if self.app.player.playing:
|
if self.app.player.playing:
|
||||||
|
|
Loading…
Add table
Reference in a new issue