Fix scanlator filter display

This commit is contained in:
Jobobby04 2022-03-19 15:32:40 -04:00
parent 75a99cbc5d
commit 0ea0cd5fe3
2 changed files with 9 additions and 0 deletions

View File

@ -1110,6 +1110,7 @@ class MangaController :
}
updateFabVisibility()
settingsSheet?.filters?.updateScanlatorFilter()
}
private fun fetchChaptersFromSource(manualFetch: Boolean = false) {

View File

@ -84,6 +84,10 @@ class ChaptersSettingsSheet(
return filterGroup.items.any { it.state != State.IGNORE.value } || presenter.manga.filtered_scanlators != null
}
fun updateScanlatorFilter() {
filterGroup.updateScanlatorFilter()
}
inner class FilterGroup : Group {
private val downloaded = Item.TriStateGroup(R.string.action_filter_downloaded, this)
@ -105,6 +109,10 @@ class ChaptersSettingsSheet(
}
unread.state = presenter.onlyUnread().value
bookmarked.state = presenter.onlyBookmarked().value
updateScanlatorFilter()
}
fun updateScanlatorFilter() {
scanlatorFilters.isVisible = presenter.allChapterScanlators.size > 1
}