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:
1 parent
23ab5750c3
commit
e3f978be2c
2 files changed
+17
-1
No files matched your search
@@ -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 = {
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user