fix: reload download states in HomeView and ArtistDetailView when download state changes

cp
This commit is contained in:
vicrodh committed 2026-01-15 00:45:25 -06:00
1 parent 87f8980323
commit 6cc625c0f1
2 files changed
+27

No files matched your search

+15
View File
@@ -164,6 +164,21 @@
return albumDownloadStatuses.get(albumId) || false;
}
$effect(() => {
if (downloadStateVersion !== undefined) {
const allAlbums = [
...newReleases,
...pressAwards,
...mostStreamed,
...qobuzissimes,
...editorPicks,
...recentAlbums,
...favoriteAlbums
];
loadAllAlbumDownloadStatuses(allAlbums);
}
});
const hasContent = $derived(
newReleases.length > 0
|| pressAwards.length > 0