TouchMenu: simplify/remove enabled_func in some cases (#9966)

reviewable/pr9974/r1
zwim 1 year ago committed by GitHub
parent d6ec148548
commit 54a105c24f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -387,7 +387,6 @@ function NetworkMgr:getWifiMenuTable()
if Device:isAndroid() then if Device:isAndroid() then
return { return {
text = _("Wi-Fi settings"), text = _("Wi-Fi settings"),
enabled_func = function() return true end,
callback = function() self:openSettings() end, callback = function() self:openSettings() end,
} }
else else

@ -1074,7 +1074,7 @@ function AutoWarmth:getWarmthMenu()
}, },
{ {
text = Device:hasNaturalLight() and _("Set warmth and night mode for:") or _("Set night mode for:"), 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(_("Solar noon"), 6, false),
getWarmthMenuEntry(_("Sunset and sunrise"), 5), getWarmthMenuEntry(_("Sunset and sunrise"), 5),

Loading…
Cancel
Save