Made playlists load on click if they weren't.

Also set default for setting "load_on_start" to False because with this change, it feels a lot cleaner this way and uses less RAM.
This commit is contained in:
The Wobbler 2025-02-27 17:26:33 +01:00
parent 4dc1caab6e
commit 3fd29bcf92
3 changed files with 7 additions and 2 deletions

View file

@ -56,9 +56,11 @@ class Library:
playlist_view = PlaylistView(playlist, library_dock)
playlist_tabs.addTab(playlist_view, playlist.title)
if playlist.path == self.app.settings.latest_playlist: # start with latest playlist opened
if playlist.path == self.app.settings.latest_playlist: # start with latest playlist opened and loaded
playlist_tabs.setCurrentIndex(playlist_tabs.count() - 1)
playlist.load()
if self.app.settings.load_on_start:
for playlist in self.playlists:
playlist.load()