From 88794761966234fdb99eb6bc937ad773cae0a2af Mon Sep 17 00:00:00 2001 From: hius07 <62179190+hius07@users.noreply.github.com> Date: Wed, 3 Apr 2024 11:08:06 +0300 Subject: [PATCH] Update readerbookmark.lua --- frontend/apps/reader/modules/readerbookmark.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/apps/reader/modules/readerbookmark.lua b/frontend/apps/reader/modules/readerbookmark.lua index acab4e872..ca1bac816 100644 --- a/frontend/apps/reader/modules/readerbookmark.lua +++ b/frontend/apps/reader/modules/readerbookmark.lua @@ -419,7 +419,7 @@ function ReaderBookmark:onGotoPreviousBookmarkFromPage(add_current_location_to_s if add_current_location_to_stack ~= false then -- nil or true self.ui.link:addCurrentLocationToStack() end - local pn_or_xp = self.ui:getCurrentPage() + local pn_or_xp = self:getCurrentPageNumber() self:gotoBookmark(self:getPreviousBookmarkedPage(pn_or_xp)) return true end @@ -428,7 +428,7 @@ function ReaderBookmark:onGotoNextBookmarkFromPage(add_current_location_to_stack if add_current_location_to_stack ~= false then -- nil or true self.ui.link:addCurrentLocationToStack() end - local pn_or_xp = self.ui:getCurrentPage() + local pn_or_xp = self:getCurrentPageNumber() self:gotoBookmark(self:getNextBookmarkedPage(pn_or_xp)) return true end @@ -437,7 +437,7 @@ function ReaderBookmark:onGotoFirstBookmark(add_current_location_to_stack) if add_current_location_to_stack ~= false then -- nil or true self.ui.link:addCurrentLocationToStack() end - local pn_or_xp = self.ui:getCurrentPage() + local pn_or_xp = self:getCurrentPageNumber() self:gotoBookmark(self:getFirstBookmarkedPage(pn_or_xp)) return true end @@ -446,7 +446,7 @@ function ReaderBookmark:onGotoLastBookmark(add_current_location_to_stack) if add_current_location_to_stack ~= false then -- nil or true self.ui.link:addCurrentLocationToStack() end - local pn_or_xp = self.ui:getCurrentPage() + local pn_or_xp = self:getCurrentPageNumber() self:gotoBookmark(self:getLastBookmarkedPage(pn_or_xp)) return true end