Fix page stats messed up after rerendering (#9775)

Fix regression introduced by 48eb0231 #9651: on re-rerendering, the new pages count didn't reach the Statistics plugin.
So, if you change font size or margins, the stats for the page read since then were badly accounted, until a change of book or restart... I noticed that in Book map, strange nobody else did over the last 2.5 weeks.
reviewable/pr9776/r1
poire-z 2 years ago committed by GitHub
parent 8500fdd519
commit 1fa706a2c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -110,7 +110,9 @@ function ReaderToc:onUpdateToc()
end
-- Be sure to update the ToC after a CRE rerendering
ReaderToc.onDocumentRerendered = ReaderToc.onUpdateToc
function ReaderToc:onDocumentRerendered()
self:onUpdateToc()
end
function ReaderToc:onPageUpdate(pageno)
if UIManager.FULL_REFRESH_COUNT == -1 or G_reader_settings:isTrue("refresh_on_chapter_boundaries") then

Loading…
Cancel
Save