Added loading of playlists to the process-dock.
This commit is contained in:
parent
6786a3dcd8
commit
301896e12c
4 changed files with 48 additions and 19 deletions
|
@ -161,11 +161,14 @@ class Player:
|
|||
track = self.current_playlist.tracks[self.current_playlist.current_track_index + 1]
|
||||
|
||||
if not track.cached:
|
||||
self.app.gui.on_background_job_start("track_caching")
|
||||
self.app.gui.on_background_job_start(
|
||||
"Loading Track",
|
||||
"Loading next track in the background so it starts immediately."
|
||||
)
|
||||
|
||||
track.cache()
|
||||
|
||||
self.app.gui.on_background_job_stop("track_caching")
|
||||
self.app.gui.on_background_job_stop("Loading Track")
|
||||
|
||||
def cache_next_track(self):
|
||||
# function that creates a thread which will cache the next track
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue