mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -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:
parent
4f4c562a33
commit
0892d2a022
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user