forked from Wobbl/Wobuzz
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:
parent
4dc1caab6e
commit
3fd29bcf92
3 changed files with 7 additions and 2 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue