mirror of
https://github.com/Suwayomi/TachideskJUI.git
synced 2025-12-10 06:42:05 +01:00
Fix reader mark as read
This commit is contained in:
@@ -303,7 +303,7 @@ class ReaderMenuViewModel @Inject constructor(
|
||||
_currentPage
|
||||
.onEach { index ->
|
||||
(_pages.value.getOrNull(_currentPage.value - 1) as? ReaderPage)?.let { chapter.pageLoader?.loadPage(it) }
|
||||
if (index == _pages.value.size) {
|
||||
if (index == _pages.value.lastIndex) {
|
||||
markChapterRead(chapter)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user