[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:
1 parent
e65ff7b7c8
commit
b35c28e8b4
6 files changed
+57
-27
No files matched your search
@@ -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 = {
|
||||
|
||||
Reference in new issue
Block a user