mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
TouchMenu: simplify/remove enabled_func in some cases (#9966)
This commit is contained in:
@@ -387,7 +387,6 @@ function NetworkMgr:getWifiMenuTable()
|
||||
if Device:isAndroid() then
|
||||
return {
|
||||
text = _("Wi-Fi settings"),
|
||||
enabled_func = function() return true end,
|
||||
callback = function() self:openSettings() end,
|
||||
}
|
||||
else
|
||||
|
||||
@@ -1074,7 +1074,7 @@ function AutoWarmth:getWarmthMenu()
|
||||
},
|
||||
{
|
||||
text = Device:hasNaturalLight() and _("Set warmth and night mode for:") or _("Set night mode for:"),
|
||||
enabled_func = function() return false end,
|
||||
enabled = false,
|
||||
},
|
||||
getWarmthMenuEntry(_("Solar noon"), 6, false),
|
||||
getWarmthMenuEntry(_("Sunset and sunrise"), 5),
|
||||
|
||||
Reference in New Issue
Block a user