Fix empty reader page when current chapter is last chapter of the chapter group.

This commit is contained in:
2025-03-01 09:29:04 +08:00
parent 5843d7c919
commit e8afbca7b2

View File

@@ -433,11 +433,8 @@ abstract mixin class _ReaderLocation {
bool toPage(int page) {
if (_validatePage(page)) {
if (page == this.page) {
if (!(chapter == 1 && page == 1) &&
!(chapter == maxChapter && page == maxPage)) {
return false;
}
if (page == this.page && page != 1 && page != maxPage) {
return false;
}
this.page = page;
update();