mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
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:
@@ -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