Added loading of playlists to the process-dock.

This commit is contained in:
The Wobbler 2025-02-20 18:55:01 +01:00
parent 6786a3dcd8
commit 301896e12c
4 changed files with 48 additions and 19 deletions

View file

@ -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