Skip to content

Fix page stats messed up after rerendering#9775

Merged
Frenzie merged 1 commit into
koreader:masterfrom
poire-z:fix_stats_on_rerender
Nov 11, 2022
Merged

Fix page stats messed up after rerendering#9775
Frenzie merged 1 commit into
koreader:masterfrom
poire-z:fix_stats_on_rerender

Conversation

@poire-z

@poire-z poire-z commented Nov 11, 2022

Copy link
Copy Markdown
Contributor

Fix regression introduced by 48eb023 #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.

(Stupid me... I explicitely put back the return true in :onUpdateToc - as nothing else should handle that event - and just use it as-is for onDocumentRerendered, which itself should propagate...)


This change is Reviewable

Fix regression introduced by 48eb023:
on re-rerendering, the new pages count didn't
reach the Statistics plugin.
@poire-z poire-z added this to the 2022.11 milestone Nov 11, 2022
@Frenzie Frenzie merged commit 1fa706a into koreader:master Nov 11, 2022
@poire-z poire-z deleted the fix_stats_on_rerender branch November 11, 2022 21:05
@poire-z

poire-z commented Nov 11, 2022

Copy link
Copy Markdown
Contributor Author

(Dunno how my whole first post where I usually write more funny stories ended up replacing my serious short commit message :)

@Frenzie

Frenzie commented Nov 11, 2022

Copy link
Copy Markdown
Member

That's how good it was. :-)

@mergen3107

Copy link
Copy Markdown
Contributor

I haven't noticed it mainly because I constantly switch books via gesture :D

0xstillb pushed a commit to 0xstillb/koreader-thai that referenced this pull request May 9, 2026
Fix regression introduced by 2f749ca koreader#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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants