Added a dock widget that shows background processes.

This commit is contained in:
The Wobbler 2025-02-03 14:08:19 +01:00
parent 67c3b9e226
commit c55c1222f0
7 changed files with 135 additions and 7 deletions

View file

@ -160,8 +160,12 @@ 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")
track.cache()
self.app.gui.on_background_job_stop("track_caching")
def cache_next_track(self):
# function that creates a thread which will cache the next track
caching_thread = threading.Thread(target=self.caching_thread_function)