Changeset 2368


Ignore:
Timestamp:
May 5, 2014, 10:25:43 AM (4 years ago)
Author:
matthijs
Message:

luci: Don't fire UMTS event on 3G config changes

Previously, this would cause the network to restart on every
config change. When UMTS mode was not enabled, this restart would be
pointless. When UMTS was enabled, this restart might be useful, but
sometimes the status display would not properly updated after this
restart, which made things confusing for the user.

Now, the UMTS event is only triggered when explicitly
{,dis,re}connecting, which should be more clear.

Note that the hotspot is still started or stopped when the enable
hotspot setting is changed.

Location:
trunk/luci/modules/admin-fon/luasrc/model/cbi/fon_umts
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/luci/modules/admin-fon/luasrc/model/cbi/fon_umts/configure.lua

    r2322 r2368  
    1010        translate("umts_title", "Provider / SIM settings"),
    1111        translate("umts_cred", "Please select your provider"))
    12 m.events = {"UMTS"}
    1312s = m:section(NamedSection, "advanced")
    1413
     
    10099usedns:value("0", translate("umts_dns_provider", "provider default (get from list)"))
    101100usedns:value("1", translate("umts_dns_automatic", "automatic (get from network)"))
    102 usedns.events = {"UMTS"}
    103101
    104102local mode = s:option(ListValue, "umts_mode", translate("umts_net", "Network"))
     
    109107mode:value("force_umts", translate("umts_force_umts", "force UMTS"))
    110108mode.default = "auto"
    111 mode.events = {"UMTS"}
    112109
    113110local spot = s:option(ListValue, "umts_fonspot", translate("umts_hotspot", "Activate Hotspot"),
  • trunk/luci/modules/admin-fon/luasrc/model/cbi/fon_umts/main.lua

    r2362 r2368  
    2323local m = Map("fon",
    2424        translate("umts_title", "UMTS Settings"))
    25 m.events = {"UMTS"}
    2625
    2726local devices = get_udiald_output("-q --list-devices")
Note: See TracChangeset for help on using the changeset viewer.