Fix default category showing up in edit manga categories list

Also remove some usages of runBlocking
This commit is contained in:
arkon
2022-08-07 11:00:51 -04:00
parent 3c2e237d63
commit 3bc6b1e202
8 changed files with 36 additions and 43 deletions
@@ -408,7 +408,7 @@ class LibraryPresenter(
private fun getLibraryObservable(): Observable<Library> {
return combine(getCategoriesFlow(), getLibraryMangasFlow()) { dbCategories, libraryManga ->
val categories = if (libraryManga.isNotEmpty() && libraryManga.containsKey(0).not()) {
dbCategories.filterNot { it.id == Category.UNCATEGORIZED_ID }
dbCategories.filterNot { it.isSystemCategory }
} else {
dbCategories
}