Menu: Split off "Page Turns" submenu in two sections

The Kindle swipe animations & physical key inversion apply *everywhere*,
so we need this accessible in the FM, too.

Move it to Navigation, which is where it already was on !Touch devices.
This commit is contained in:
NiLuJe
2023-08-11 23:58:00 +02:00
parent 0db7509fe2
commit 6283674c47
6 changed files with 51 additions and 39 deletions

View File

@@ -237,11 +237,11 @@ function ReaderMenu:setUpdateItemTable()
end
if Device:isTouchDevice() then
-- Mostly concern about touch related page turn stuff, which only applies to Reader; ends up in Taps & Gestures
self.menu_items.page_turns = require("ui/elements/page_turns")
else
-- Placed elsewhere than in Taps and gestures, with only a subset of menu items.
self.menu_items.page_turns_non_touch = require("ui/elements/page_turns")
end
-- While also related to page turns, this mostly concerns platform-specific features or physical keys, and applies *everywhere*
self.menu_items.platform_navigation_features = require("ui/elements/platform_navigation")
-- insert DjVu render mode submenu just before the last entry (show advanced)
-- this is a bit of a hack
if self.ui.document.is_djvu then