mirror of
https://github.com/YACReader/yacreader
synced 2025-07-14 11:04:25 -04:00
Fix saving progress in double page mode
If the current page is being displayed we don't change anything, if is it not, we pick the current index page.
This commit is contained in:
@ -1088,7 +1088,9 @@ void Viewer::updateComic(ComicDB &comic)
|
||||
if (!doublePage || (doublePage && render->currentPageIsDoublePage() == false)) {
|
||||
comic.info.currentPage = render->getIndex() + 1;
|
||||
} else {
|
||||
comic.info.currentPage = std::min(render->numPages(), render->getIndex() + 2);
|
||||
if (!(render->getIndex() + 1 == comic.info.currentPage || render->getIndex() + 2 == comic.info.currentPage)) {
|
||||
comic.info.currentPage = std::min(render->numPages(), render->getIndex() + 1);
|
||||
}
|
||||
}
|
||||
//set bookmarks
|
||||
Bookmarks *boomarks = render->getBookmarks();
|
||||
|
Reference in New Issue
Block a user