mirror of
https://github.com/venera-app/venera.git
synced 2025-09-27 15:57:25 +00:00
Fix empty reader page when current chapter is last chapter of the chapter group.
This commit is contained in:
@@ -433,11 +433,8 @@ 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) &&
|
return false;
|
||||||
!(chapter == maxChapter && page == maxPage)) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
this.page = page;
|
this.page = page;
|
||||||
update();
|
update();
|
||||||
|
Reference in New Issue
Block a user