mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Menu: Actually hide PlatformNav if !hasKeys
Returning {} just leads to a present but blank entry
(Also, nobody notice that the capcheck was wrong inside platnav anyway ;p).
This commit is contained in:
@@ -1,15 +1,9 @@
|
||||
local Device = require("device")
|
||||
|
||||
-- Everything in there requires physicla page turn keys ;).
|
||||
if Device:hasKeys() then
|
||||
-- No menu entry at all if we don't have any
|
||||
return {}
|
||||
end
|
||||
|
||||
local Event = require("ui/event")
|
||||
local UIManager = require("ui/uimanager")
|
||||
local _ = require("gettext")
|
||||
|
||||
-- This whole menu is hidden behind a hasKeys device cap.
|
||||
local PlatformNav = {
|
||||
text = _("Page turn behavior"), -- Mainly so as to differentiate w/ "Page Turns" when in readermenu...
|
||||
sub_item_table = {
|
||||
|
||||
Reference in New Issue
Block a user