2
0
mirror of https://github.com/koreader/koreader synced 2024-11-04 12:00:25 +00:00

ReaderStatus: save status summary (#9619)

This commit is contained in:
hius07 2022-10-10 17:52:47 -04:00 committed by GitHub
parent 4969811c08
commit a728e3b5fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,7 +19,6 @@ local ReaderStatus = WidgetContainer:extend{
function ReaderStatus:init()
if self.ui.document.is_pic then
self.enabled = false
return
else
self.total_pages = self.document:getPageCount()
self.ui.menu:registerToMainMenu(self)
@ -258,6 +257,9 @@ function ReaderStatus:onMarkBook(mark_read)
else
self.settings.data.summary = {status = "complete"}
end
-- If History is called over Reader, it will read the file to get the book status, so save and flush
self.settings:saveSetting("summary", self.settings.data.summary)
self.settings:flush()
end
function ReaderStatus:onReadSettings(config)