Add new setting: auto_book_status

Fixes #2363.
pull/2376/head
Bastien Dejean 8 years ago committed by Qingping Hou
parent 80cf111fcf
commit cffb21f7be

@ -24,8 +24,10 @@ function ReaderStatus:init()
self.total_pages = self.document:getPageCount()
self.ui.menu:registerToMainMenu(self)
-- register event listener if enabled
self.onEndOfBook = function()
self:showStatus()
if G_reader_settings:nilOrTrue("auto_book_status") then
self.onEndOfBook = function()
self:showStatus()
end
end
end
end

Loading…
Cancel
Save