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

This commit is contained in:
zwim
2022-12-29 08:44:37 +01:00
committed by GitHub
parent d6ec148548
commit 54a105c24f
2 changed files with 1 additions and 2 deletions

View File

@@ -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

View File

@@ -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),