Fix scanlator filter display
This commit is contained in:
@@ -1110,6 +1110,7 @@ class MangaController :
|
||||
}
|
||||
|
||||
updateFabVisibility()
|
||||
settingsSheet?.filters?.updateScanlatorFilter()
|
||||
}
|
||||
|
||||
private fun fetchChaptersFromSource(manualFetch: Boolean = false) {
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user