Fixed another crash by adding a check that makes sure that the current playlist is not NoneType before a current_playlist.has_tracks()-call.

This commit is contained in:
The Wobbler 2025-02-21 20:20:35 +01:00
parent 6e7948e579
commit 567afb1866

View file

@ -57,7 +57,7 @@ class TrackProgressSlider(QSlider):
def on_release(self):
self.dragged = False
if self.app.player.current_playlist.has_tracks():
if self.app.player.current_playlist is not None and self.app.player.current_playlist.has_tracks():
self.app.player.seek(self.value())
def update_progress(self):