close offline detail screens when their downloads are gone

This commit is contained in:
austinried
2026-10-04 00:30:04 +00:00
parent 15e09d8097
commit 669f1aff40
6 changed files with 38 additions and 2 deletions
@@ -45,6 +45,8 @@ class AlbumDetailViewModel(
val downloads: StateFlow<Map<String, SongDownload>> = downloadRepository.states()
val offline: StateFlow<Boolean> = sourceRepository.offline
val downloadStatus: StateFlow<ListDownloadStatus> =
sourceId
.flatMapLatest { downloadRepository.status(it, DownloadList.Album, albumId) }