Fix reader not updating progress (#2007)

The condition for updating progress is wrong since fefa8f8498
This commit is contained in:
KokaKiwi
2025-04-18 05:50:42 +02:00
committed by GitHub
parent 0cb1925cf1
commit 6632a12228

View File

@ -537,7 +537,7 @@ class ReaderViewModel @JvmOverloads constructor(
readerChapter.requestedPage = pageIndex readerChapter.requestedPage = pageIndex
chapterPageIndex = pageIndex chapterPageIndex = pageIndex
if (!incognitoMode && page.status is Page.State.Error) { if (!incognitoMode && page.status !is Page.State.Error) {
readerChapter.chapter.last_page_read = pageIndex readerChapter.chapter.last_page_read = pageIndex
if (readerChapter.pages?.lastIndex == pageIndex) { if (readerChapter.pages?.lastIndex == pageIndex) {