mirror of
https://github.com/koreader/koreader.git
synced 2025-12-24 12:14:05 +01:00
ReaderLink: option to add location to stack on opening book (#7685)
This commit is contained in:
@@ -90,6 +90,12 @@ function ReaderLink:init()
|
||||
self.ui:registerPostInitCallback(function()
|
||||
self.ui.menu:registerToMainMenu(self)
|
||||
end)
|
||||
if G_reader_settings:isTrue("opening_page_location_stack") then
|
||||
-- Add location at book opening to stack
|
||||
self.ui:registerPostReadyCallback(function()
|
||||
self:addCurrentLocationToStack()
|
||||
end)
|
||||
end
|
||||
-- For relative local file links
|
||||
local directory, filename = util.splitFilePathName(self.ui.document.file) -- luacheck: no unused
|
||||
self.document_dir = directory
|
||||
|
||||
Reference in New Issue
Block a user