feat(settings): add toggle for Qobuz artist images fetching

- Add Library section in Settings with toggle for artist images
- Check localStorage setting before fetching images
- Enabled by default, persists user preference
This commit is contained in:
vicrodh committed 2026-01-14 08:29:38 -06:00
1 parent 9371a38e17
commit 3100f1f6fb
2 files changed
+41 -3

No files matched your search

@@ -278,9 +278,12 @@
loading = true;
try {
artists = await invoke<LocalArtist[]>('library_get_artists');
// Fetch Qobuz artist images in background (best-effort)
const artistNames = artists.map(a => a.name);
fetchArtistImages(artistNames);
// Fetch Qobuz artist images in background (best-effort) if enabled
const fetchEnabled = localStorage.getItem('qbz-fetch-artist-images') !== 'false';
if (fetchEnabled) {
const artistNames = artists.map(a => a.name);
fetchArtistImages(artistNames);
}
} catch (err) {
console.error('Failed to load artists:', err);
error = String(err);