diff --git a/src/lib/components/views/SettingsView.svelte b/src/lib/components/views/SettingsView.svelte index 443c35ab4..c673b885b 100644 --- a/src/lib/components/views/SettingsView.svelte +++ b/src/lib/components/views/SettingsView.svelte @@ -2553,7 +2553,15 @@ Artwork Thumbnails {#if artworkCacheStats} - {artworkCacheStats.thumbnail_file_count} thumbnails ({formatBytes(artworkCacheStats.thumbnails_cache_bytes)}){#if artworkCacheStats.artwork_file_count > 0}, {artworkCacheStats.artwork_file_count} legacy files ({formatBytes(artworkCacheStats.artwork_cache_bytes)}){/if} + {@const thumbCount = artworkCacheStats.thumbnail_file_count ?? 0} + {@const thumbBytes = artworkCacheStats.thumbnails_cache_bytes ?? 0} + {@const legacyCount = artworkCacheStats.artwork_file_count ?? 0} + {@const legacyBytes = artworkCacheStats.artwork_cache_bytes ?? 0} + {#if thumbCount > 0 || legacyCount > 0} + {#if thumbCount > 0}{thumbCount} thumbnails ({formatBytes(thumbBytes)}){/if}{#if thumbCount > 0 && legacyCount > 0}, {/if}{#if legacyCount > 0}{legacyCount} legacy files ({formatBytes(legacyBytes)}){/if} + {:else} + No cached artwork + {/if} {:else} - {/if} @@ -2562,7 +2570,7 @@ @@ -2571,11 +2579,11 @@
Clear All Caches - Clears all cached data above (queue, lyrics, metadata, vectors, artwork) + Clears all cached data above