mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
[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:
@@ -139,4 +139,13 @@ if Device:hasKeys() then
|
||||
})
|
||||
end
|
||||
|
||||
if not Device:isTouchDevice() then
|
||||
if Device:hasKeys() then
|
||||
-- We just need the last item added above.
|
||||
PageTurns = PageTurns.sub_item_table[#PageTurns.sub_item_table]
|
||||
else
|
||||
PageTurns = {} -- no menu item
|
||||
end
|
||||
end
|
||||
|
||||
return PageTurns
|
||||
|
||||
Reference in New Issue
Block a user