Fix buffering UX when transitioning from local to Qobuz tracks

- Stop playback immediately when starting a Qobuz track to prevent
  previous track from continuing during download
- Show buffering toast while downloading Qobuz audio
- Skip buffering UI for local tracks since they load instantly
- Add is_local field to QueueTrack for prefetch optimization
- Update prefetch to skip local tracks (no network needed)
- Update all queue track builders to include is_local flag
This commit is contained in:
vicrodh committed 2026-01-16 07:58:13 -06:00
1 parent 3e3f89b6a8
commit 94d7d78a22
7 files changed
+50 -12

No files matched your search

+6
View File
@@ -215,6 +215,12 @@ fn spawn_prefetch(
let track_id = track.id;
let track_title = track.title.clone();
// Skip local tracks - they don't need prefetching from Qobuz
if track.is_local {
log::debug!("Skipping prefetch for local track: {} - {}", track_id, track_title);
continue;
}
// Check if already cached or being fetched
if cache.contains(track_id) {
log::debug!("Track {} already cached", track_id);