forked from Wobbl/Wobuzz
Added option to load playlists on start to the settings.
This commit is contained in:
parent
5dc91f6605
commit
65564deb82
7 changed files with 20 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue