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:
1 parent
9371a38e17
commit
3100f1f6fb
2 files changed
+41
-3
No files matched your search
@@ -152,6 +152,9 @@
|
||||
let systemNotificationsEnabled = $state(true);
|
||||
let language = $state('Auto');
|
||||
|
||||
// Library settings
|
||||
let fetchQobuzArtistImages = $state(true);
|
||||
|
||||
// Last.fm integration state
|
||||
let lastfmConnected = $state(false);
|
||||
let lastfmUsername = $state('');
|
||||
@@ -207,6 +210,12 @@
|
||||
zoomLevel = match || '100%';
|
||||
}
|
||||
|
||||
// Load library settings
|
||||
const savedFetchArtistImages = localStorage.getItem('qbz-fetch-artist-images');
|
||||
if (savedFetchArtistImages !== null) {
|
||||
fetchQobuzArtistImages = savedFetchArtistImages === 'true';
|
||||
}
|
||||
|
||||
// Load cache stats
|
||||
loadCacheStats();
|
||||
|
||||
@@ -872,6 +881,21 @@
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- Library Section -->
|
||||
<section class="section">
|
||||
<h3 class="section-title">Library</h3>
|
||||
<div class="setting-row last">
|
||||
<div class="setting-with-description">
|
||||
<span class="setting-label">Fetch Qobuz Artist Images</span>
|
||||
<span class="setting-description">Show artist photos from Qobuz in local library</span>
|
||||
</div>
|
||||
<Toggle enabled={fetchQobuzArtistImages} onchange={(v) => {
|
||||
fetchQobuzArtistImages = v;
|
||||
localStorage.setItem('qbz-fetch-artist-images', String(v));
|
||||
}} />
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- Integrations Section -->
|
||||
<section class="section">
|
||||
<h3 class="section-title">Integrations</h3>
|
||||
@@ -1379,6 +1403,17 @@
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.setting-with-description {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 2px;
|
||||
}
|
||||
|
||||
.setting-description {
|
||||
font-size: 12px;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.setting-value {
|
||||
font-size: 14px;
|
||||
color: var(--text-muted);
|
||||
|
||||
Reference in new issue
Block a user