home: fix broken item refresh

This commit is contained in:
Alexander Capehart 2024-10-14 12:46:05 -06:00
parent d6a0b75618
commit f84e3428f0
No known key found for this signature in database
GPG key ID: 37DBE3621FE9AD47

View file

@ -175,24 +175,24 @@ constructor(
override fun invalidateMusic(type: MusicType, instructions: UpdateInstructions) { override fun invalidateMusic(type: MusicType, instructions: UpdateInstructions) {
when (type) { when (type) {
MusicType.SONGS -> { MusicType.SONGS -> {
_songList.value = homeGenerator.songs()
_songInstructions.put(instructions) _songInstructions.put(instructions)
_songList.value = homeGenerator.songs()
} }
MusicType.ALBUMS -> { MusicType.ALBUMS -> {
_albumList.value = homeGenerator.albums()
_albumInstructions.put(instructions) _albumInstructions.put(instructions)
_albumList.value = homeGenerator.albums()
} }
MusicType.ARTISTS -> { MusicType.ARTISTS -> {
_artistList.value = homeGenerator.artists()
_artistInstructions.put(instructions) _artistInstructions.put(instructions)
_artistList.value = homeGenerator.artists()
} }
MusicType.GENRES -> { MusicType.GENRES -> {
_genreList.value = homeGenerator.genres()
_genreInstructions.put(instructions) _genreInstructions.put(instructions)
_genreList.value = homeGenerator.genres()
} }
MusicType.PLAYLISTS -> { MusicType.PLAYLISTS -> {
_playlistList.value = homeGenerator.playlists()
_playlistInstructions.put(instructions) _playlistInstructions.put(instructions)
_playlistList.value = homeGenerator.playlists()
} }
} }
} }