Skip to content

Commit

Permalink
ReaderStatus: update status modification time (#11568)
Browse files Browse the repository at this point in the history
In the "End of the book" action.
Closes #11564 (No idea how we got a book without modification time but the time stamp must be updated in any case)
  • Loading branch information
hius07 committed Mar 18, 2024
1 parent 424fa9b commit bb98cbf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions frontend/apps/reader/modules/readerstatus.lua
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ end
-- Otherwise we change status from reading/abandoned to complete or from complete to reading.
function ReaderStatus:onMarkBook(mark_read)
self.summary.status = (not mark_read and self.summary.status == "complete") and "reading" or "complete"
self.summary.modified = os.date("%Y-%m-%d", os.time())
-- 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.summary)
self.settings:flush()
Expand Down

0 comments on commit bb98cbf

Please sign in to comment.