Added option to load playlists on start to the settings.

This commit is contained in:
The Wobbler 2025-02-20 17:44:09 +01:00
parent 5dc91f6605
commit 65564deb82
7 changed files with 20 additions and 6 deletions

View file

@ -59,6 +59,10 @@ class Library:
if playlist.path == self.app.settings.latest_playlist: # start with latest playlist opened
playlist_tabs.setCurrentIndex(playlist_tabs.count() - 1)
if self.app.settings.load_on_start:
for playlist in self.playlists:
playlist.load()
def on_exit(self, event):
for playlist in self.playlists:
if playlist.loaded: # only save loaded playlists, unloaded are empty