Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

copt deduplicate: font_size, visible_pages #10882

Merged
merged 7 commits into from Sep 9, 2023

Conversation

hius07
Copy link
Member

@hius07 hius07 commented Sep 8, 2023

Main discussion in: #10763.


This change is Reviewable

Copy link
Contributor

@poire-z poire-z left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No update in plugins/profiles.koplugin/main.lua needed ?
(grep visible_pages reveal there are many settings name in there, will they work as-is after your deduplications?)

@@ -401,7 +401,7 @@ If any of the other Swipe to follow link options is enabled, this will work only
-- less visual feedback on PDF document of what is a link, or that we just
-- followed a link, than on EPUB, it's safer to not use them on PDF documents
-- even if the user enabled these features for EPUB documents).
if not self.ui.document.info.has_pages then
if not self.document.info.has_pages then
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if self.ui.rolling ?
(A few of that below.)

@@ -1561,9 +1557,9 @@ function ReaderRolling:checkXPointersAndProposeDOMVersionUpgrade()
end
if g_block_rendering_mode ~= 0 then -- default is not "legacy"
-- This setting is actually saved by self.ui.document.configurable
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment can probably be updated or removed.

@hius07
Copy link
Member Author

hius07 commented Sep 8, 2023

No update in plugins/profiles.koplugin/main.lua needed ?
(grep visible_pages reveal there are many settings name in there, will they work as-is after your deduplications?)

I can find one entry only.

@poire-z
Copy link
Contributor

poire-z commented Sep 8, 2023

Yes, one entry of "visible_pages", but many other setting names with their short form, not the copt_ form.
I guess you obviously thought of that and it all work - just asking in the improbable case you did not :)

@hius07 hius07 merged commit 6efcf96 into koreader:master Sep 9, 2023
3 checks passed
@hius07 hius07 deleted the copt-font_size branch September 9, 2023 06:24
@hius07 hius07 added this to the 2023.09 milestone Sep 9, 2023
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.

None yet

2 participants