Fix group by settings with only default category

This commit is contained in:
Jobobby04 2022-08-07 11:36:56 -04:00
parent 7cbf795295
commit 46fc6d44bc

View File

@ -505,7 +505,7 @@ class LibrarySettingsSheet(
private val groupItems = mutableListOf<Item.DrawableSelection>()
private val trackManager: TrackManager = Injekt.get()
private val hasCategories = runBlocking {
Injekt.get<GetCategories>().await().isNotEmpty()
Injekt.get<GetCategories>().await().filterNot(Category::isSystemCategory).isNotEmpty()
}
init {