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:
parent
4969811c08
commit
a728e3b5fa
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user