mirror of
https://github.com/mihonapp/mihon.git
synced 2025-11-16 05:57:29 +01:00
@@ -747,7 +747,6 @@ class LibraryScreenModel(
|
||||
val selectionMode = selection.isNotEmpty()
|
||||
|
||||
val categories = library.keys.toList()
|
||||
private val onlyDefaultCategory = categories.size == 1 && categories[0].isSystemCategory
|
||||
|
||||
val libraryCount by lazy {
|
||||
library.values
|
||||
@@ -765,7 +764,7 @@ class LibraryScreenModel(
|
||||
}
|
||||
|
||||
fun getMangaCountForCategory(category: Category): Int? {
|
||||
return if (showMangaCount) library[category]?.size else null
|
||||
return if (showMangaCount || !searchQuery.isNullOrEmpty()) library[category]?.size else null
|
||||
}
|
||||
|
||||
fun getToolbarTitle(
|
||||
|
||||
@@ -170,8 +170,7 @@ object LibraryTab : Tab {
|
||||
selection = state.selection,
|
||||
contentPadding = contentPadding,
|
||||
currentPage = { screenModel.activeCategory },
|
||||
isLibraryEmpty = state.libraryCount == 0,
|
||||
showPageTabs = state.showCategoryTabs,
|
||||
showPageTabs = state.showCategoryTabs || !state.searchQuery.isNullOrEmpty(),
|
||||
onChangeCurrentPage = { screenModel.activeCategory = it },
|
||||
onMangaClicked = { navigator.push(MangaScreen(it)) },
|
||||
onContinueReadingClicked = { it: LibraryManga ->
|
||||
|
||||
Reference in New Issue
Block a user