X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/f06af856d2a0210bf7931f800ecb7ad13fbf659a..b4f98a4602ab1b51bf03f989ece928214cafd46b:/lib/python/Screens/NetworkSetup.py diff --git a/lib/python/Screens/NetworkSetup.py b/lib/python/Screens/NetworkSetup.py index d18d82d4..be2a763d 100644 --- a/lib/python/Screens/NetworkSetup.py +++ b/lib/python/Screens/NetworkSetup.py @@ -111,6 +111,9 @@ class NameserverSetup(Screen, ConfigListScreen): iNetwork.writeNameserverConfig() self.close() + def run(self): + self.ok() + def cancel(self): iNetwork.clearNameservers() print "backup-list:", self.backupNameserverList @@ -507,7 +510,8 @@ class AdapterSetupConfiguration(Screen): callFnc = p.__call__["ifaceSupported"](self.iface) if callFnc is not None: menu.append((_("Scan Wireless Networks"), "scanwlan")) - menu.append((_("Show WLAN Status"), "wlanstatus")) + if iNetwork.getAdapterAttribute(self.iface, "up"): + menu.append((_("Show WLAN Status"), "wlanstatus")) if os_path.exists(resolveFilename(SCOPE_PLUGINS, "SystemPlugins/NetworkWizard/networkwizard.xml")): menu.append((_("NetworkWizard"), "openwizard"));