Fix number of items not updating when Show category tabs is off (#7644)

This commit is contained in:
Andreas 2022-07-29 16:17:31 +02:00 committed by GitHub
parent 483b204fb5
commit e513487caa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -644,7 +644,7 @@ class LibraryPresenter(
val defaultTitle = stringResource(id = R.string.label_library) val defaultTitle = stringResource(id = R.string.label_library)
val default = remember { LibraryToolbarTitle(defaultTitle) } val default = remember { LibraryToolbarTitle(defaultTitle) }
return produceState(initialValue = default, category, mangaCountVisibility, tabVisibility) { return produceState(initialValue = default, category, loadedManga, mangaCountVisibility, tabVisibility) {
val title = if (tabVisibility.not()) category?.name ?: defaultTitle else defaultTitle val title = if (tabVisibility.not()) category?.name ?: defaultTitle else defaultTitle
value = when { value = when {