Playlists now get loaded when they are started and removed debug prints.

This commit is contained in:
The Wobbler 2025-02-12 13:50:12 +01:00
parent 0879575882
commit 0c2c91389d
5 changed files with 12 additions and 30 deletions

View file

@ -58,7 +58,8 @@ class Library:
def on_exit(self, event):
for playlist in self.playlists:
playlist.save()
if playlist.loaded: # only save loaded playlists, unloaded are empty
playlist.save()
if self.app.player.current_playlist is not None:
self.app.settings.latest_playlist = self.app.player.current_playlist.path