musikr: add empty library check

This commit is contained in:
Alexander Capehart
2025-01-01 16:10:34 -07:00
parent 9161b8f777
commit c3ccb8519e
3 changed files with 5 additions and 1 deletions
@@ -149,7 +149,7 @@ private class HomeGeneratorImpl(
}
override fun empty() =
musicRepository.library == null
musicRepository.library?.empty() ?: true
override fun songs() =
musicRepository.library?.let { listSettings.songSort.songs(it.songs) } ?: emptyList()