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,12 +433,9 @@ abstract mixin class _ReaderLocation {
bool toPage(int page) { bool toPage(int page) {
if (_validatePage(page)) { if (_validatePage(page)) {
if (page == this.page) { if (page == this.page && page != 1 && page != maxPage) {
if (!(chapter == 1 && page == 1) &&
!(chapter == maxChapter && page == maxPage)) {
return false; return false;
} }
}
this.page = page; this.page = page;
update(); update();
if (enablePageAnimation) { if (enablePageAnimation) {