Fix scanlator filter display
This commit is contained in:
parent
75a99cbc5d
commit
0ea0cd5fe3
@ -1110,6 +1110,7 @@ class MangaController :
|
|||||||
}
|
}
|
||||||
|
|
||||||
updateFabVisibility()
|
updateFabVisibility()
|
||||||
|
settingsSheet?.filters?.updateScanlatorFilter()
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun fetchChaptersFromSource(manualFetch: Boolean = false) {
|
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
|
return filterGroup.items.any { it.state != State.IGNORE.value } || presenter.manga.filtered_scanlators != null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fun updateScanlatorFilter() {
|
||||||
|
filterGroup.updateScanlatorFilter()
|
||||||
|
}
|
||||||
|
|
||||||
inner class FilterGroup : Group {
|
inner class FilterGroup : Group {
|
||||||
|
|
||||||
private val downloaded = Item.TriStateGroup(R.string.action_filter_downloaded, this)
|
private val downloaded = Item.TriStateGroup(R.string.action_filter_downloaded, this)
|
||||||
@ -105,6 +109,10 @@ class ChaptersSettingsSheet(
|
|||||||
}
|
}
|
||||||
unread.state = presenter.onlyUnread().value
|
unread.state = presenter.onlyUnread().value
|
||||||
bookmarked.state = presenter.onlyBookmarked().value
|
bookmarked.state = presenter.onlyBookmarked().value
|
||||||
|
updateScanlatorFilter()
|
||||||
|
}
|
||||||
|
|
||||||
|
fun updateScanlatorFilter() {
|
||||||
scanlatorFilters.isVisible = presenter.allChapterScanlators.size > 1
|
scanlatorFilters.isVisible = presenter.allChapterScanlators.size > 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user