detail: fix incorrect disc section generation

This commit is contained in:
Alexander Capehart 2024-09-18 15:31:17 -06:00
parent 4917330633
commit 4accfaafaf

View file

@ -125,7 +125,7 @@ private class DetailGeneratorImpl(
val songs = listSettings.albumSongSort.songs(album.songs)
val discs = songs.groupBy { it.disc }
val section =
if (discs.size > 1 || discs.keys.first() != null) {
if (discs.size > 1) {
DetailSection.Discs(discs)
} else {
DetailSection.Songs(songs)