Skip to content

TouchMenu: optimize#14027

Merged
hius07 merged 1 commit into
koreader:masterfrom
hius07:touchmenu-optimize
Jul 8, 2025
Merged

TouchMenu: optimize#14027
hius07 merged 1 commit into
koreader:masterfrom
hius07:touchmenu-optimize

Conversation

@hius07

@hius07 hius07 commented Jul 6, 2025

Copy link
Copy Markdown
Member

"Recalculate layout" was called every time with "update items".
This is not needed because when the screen size changes (rotation, dpi change), the touch menu is closed.
But "items per page" must be refreshed because each item table can set its own max_per_page.
updateItems() now can get two args: target page, target item id (similar to switchItemTable of the Menu widget).

The duplicated code removed, Methods order corrected. A couple of (my) unreported bugs fixed.


This change is Reviewable

@hius07 hius07 merged commit 6a56740 into koreader:master Jul 8, 2025
4 checks passed
@hius07 hius07 deleted the touchmenu-optimize branch July 8, 2025 06:51
@hius07 hius07 added this to the 2025.06 milestone Jul 8, 2025
0xstillb pushed a commit to 0xstillb/koreader-thai that referenced this pull request May 9, 2026
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.

2 participants