Add new setting: auto_book_status

Fixes #2363.
This commit is contained in:
Bastien Dejean
2016-11-21 15:26:11 +01:00
committed by Qingping Hou
parent 80cf111fcf
commit cffb21f7be

View File

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