Fixed another crash that occurred because of a missing playlist.has_tracks() check.

This commit is contained in:
The Wobbler 2025-02-03 14:06:16 +01:00
parent 95d40dd30c
commit 67c3b9e226

View file

@ -84,7 +84,8 @@ class TrackControl(QToolBar):
self.app.player.start_playing()
elif self.app.player.current_playlist.title == "None":
self.app.player.start_playlist(self.app.gui.clicked_playlist)
if self.app.gui.clicked_playlist.has_tracks():
self.app.player.start_playlist(self.app.gui.clicked_playlist)
def on_playstate_update(self):
if self.app.player.playing: