[Non-Touch] Don't add touch-related menu items (#8608)

They were ending up orphaned as "New:" in the top menu first tab.
This commit is contained in:
poire-z
2022-01-02 15:01:08 +01:00
committed by GitHub
parent e65ff7b7c8
commit b35c28e8b4
6 changed files with 57 additions and 27 deletions

View File

@@ -356,6 +356,12 @@ function ReaderHighlight:addToMainMenu(menu_items)
}
end
menu_items.translation_settings = Translator:genSettingsMenu()
if not Device:isTouchDevice() then
-- Menu items below aren't needed.
return
end
menu_items.long_press = {
text = _("Long-press on text"),
sub_item_table = {