mirror of
https://github.com/null2264/yokai.git
synced 2025-07-18 06:46:57 +00:00
fix: Fix build
This commit is contained in:
parent
7836c26c6e
commit
547028776e
1 changed files with 7 additions and 3 deletions
|
@ -229,7 +229,10 @@ class LibraryPresenter(
|
|||
categories = lastCategories ?: getCategories.await().toMutableList()
|
||||
}
|
||||
|
||||
getLibraryFlow().collectLatest { data ->
|
||||
combine(
|
||||
getLibraryFlow(),
|
||||
downloadManager.cache.changes,
|
||||
) { data, _ -> data }.collectLatest { data ->
|
||||
categories = data.categories
|
||||
allCategories = data.allCategories
|
||||
|
||||
|
@ -805,8 +808,9 @@ class LibraryPresenter(
|
|||
getPreferencesFlow(),
|
||||
forceUpdateEvent.receiveAsFlow(),
|
||||
) { allCategories, libraryMangaList, prefs, _ ->
|
||||
this.groupType = prefs.groupType
|
||||
this.allCategories = allCategories
|
||||
groupType = prefs.groupType
|
||||
val defaultCategory = createDefaultCategory()
|
||||
allCategories = listOf(defaultCategory) + dbCategories
|
||||
|
||||
// FIXME: Should return Map<Int, LibraryItem> where Int is category id
|
||||
if (groupType <= BY_DEFAULT || !libraryIsGrouped) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue