mirror of
https://github.com/mihonapp/mihon.git
synced 2026-10-16 13:48:09 -07:00
Respect hidden missing chapter indicators in chapter headers (#4039)
Closes #4039 Fixes #2430
This commit is contained in:
@@ -422,7 +422,11 @@ private fun MangaScreenSmallImpl(
|
||||
key = MangaScreenItem.CHAPTER_HEADER,
|
||||
contentType = MangaScreenItem.CHAPTER_HEADER,
|
||||
) {
|
||||
val missingChapterCount = remember(chapters) {
|
||||
val missingChapterCount = remember(chapters, state.hideMissingChapters) {
|
||||
if (state.hideMissingChapters) {
|
||||
return@remember 0
|
||||
}
|
||||
|
||||
chapters.map { it.chapter.chapterNumber }.missingChaptersCount()
|
||||
}
|
||||
ChapterHeader(
|
||||
@@ -659,7 +663,11 @@ fun MangaScreenLargeImpl(
|
||||
key = MangaScreenItem.CHAPTER_HEADER,
|
||||
contentType = MangaScreenItem.CHAPTER_HEADER,
|
||||
) {
|
||||
val missingChapterCount = remember(chapters) {
|
||||
val missingChapterCount = remember(chapters, state.hideMissingChapters) {
|
||||
if (state.hideMissingChapters) {
|
||||
return@remember 0
|
||||
}
|
||||
|
||||
chapters.map { it.chapter.chapterNumber }.missingChaptersCount()
|
||||
}
|
||||
ChapterHeader(
|
||||
|
||||
Reference in New Issue
Block a user