Skip to content
Snippets Groups Projects
Unverified Commit 7222fc07 authored by Matthias Schiffer's avatar Matthias Schiffer
Browse files

gluon-web-private-wifi: fix default value of "enabled" setting

parent ebeefa17
No related branches found
No related tags found
No related merge requests found
......@@ -14,7 +14,7 @@ local s = f:section(Section, nil, translate(
))
local enabled = s:option(Flag, "enabled", translate("Enabled"))
enabled.default = (ssid and not uci:get_bool('wireless', primary_iface, "disabled"))
enabled.default = uci:get('wireless', primary_iface) and not uci:get_bool('wireless', primary_iface, "disabled")
local ssid = s:option(Value, "ssid", translate("Name (SSID)"))
ssid:depends(enabled, true)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment