Update readerbookmark.lua

reviewable/pr11563/r8
hius07 1 month ago committed by GitHub
parent 87c1bab61b
commit 8879476196
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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

Loading…
Cancel
Save