History: update last book access time (#10156)

This commit is contained in:
hius07
2023-02-23 19:23:30 +02:00
committed by GitHub
parent 81c0bc396a
commit 5c9ba53353
5 changed files with 28 additions and 29 deletions

View File

@@ -792,6 +792,7 @@ function ReaderUI:onClose(full_refresh)
self:saveSettings()
end
if self.document ~= nil then
require("readhistory"):updateLastBookTime(self.tearing_down)
-- Serialize the most recently displayed page for later launch
DocCache:serialize(self.document.file)
logger.dbg("closing document")