You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
koreader/frontend/ui/data
NiLuJe c05b1a4ee4
ReaderZooming: Deal with some more fallout of the new zoom modes (#7728)
* Namely, ensure zoom_mode is consistent with genus & type *both ways*. (I only dealt with the "no zoom_mode" case in my original fixup).
Because documents with settings dating back from before the new zoom modes had "old" zoom_mode settings mixed with "new" genus/type defaults that didn't agree with each other.
It lead to super-confusing ConfigDialog behavior, because ConfigDialog was in fact not reflecting the reality.
(As the source of truth is actually `zoom_mode`).

* There was a snafu in manual mode, because of the extremely weird way prefixes are handled by Configurable/ReaderConfig/DocSettings/ConfigDialog.
So, make sure we only have a *single* zoom_factor, and that it's updated and saved properly under the right name everywhere.

Fixes inconsistencies between first swapping to manual mode, and what the ConfigDialog said/did (because again: possibly a lie), vs., re-opening the same document, which would magically use *different* settings, closer to what was expected (but still broken because of the prefix mismatch and a disagreement on defaults between the two variants).

Fallout from #6885
3 years ago
..
keyboardlayouts Add Bulgarian keyboard layout (#7367) 3 years ago
creoptions.lua ReaderZooming: Deal with some more fallout of the new zoom modes (#7728) 3 years ago
css_tweaks.lua Style tweaks: add links italic style (#7567) 3 years ago
dictionaries.lua [fix] Dictionary download: repackage lzip to gzip (#4466) 5 years ago
koptoptions.lua ReaderZooming: Deal with some more fallout of the new zoom modes (#7728) 3 years ago
onetime_migration.lua ReaderZooming: Deal with some more fallout of the new zoom modes (#7728) 3 years ago
optionsutil.lua Notifications: options to show none/some/more (#7718) 3 years ago
settings_migration.lua Centralize one time migration code after updates (#7531) 3 years ago