Allow automatically marking the book as read on end of doc (#6256)

Keep showing the "mark as" option/button, though, because that one is a
toggle, it doesn't enforce the "read" status.
This commit is contained in:
NiLuJe
2020-06-11 11:37:14 +02:00
committed by GitHub
parent 23ab5750c3
commit e3f978be2c
2 changed files with 17 additions and 1 deletions

View File

@@ -54,6 +54,12 @@ function ReaderStatus:onEndOfBook()
if G_reader_settings:readSetting("collate") == "access" then
collate = false
end
-- Should we start by marking the book as read?
if G_reader_settings:isTrue("end_document_auto_mark") then
self:onMarkBook(true)
end
if settings == "pop-up" or settings == nil then
local buttons = {
{