From: acid-burn Date: Wed, 22 Jul 2009 06:41:27 +0000 (+0200) Subject: properly update statusbar after network restart X-Git-Tag: 2.6.0~195 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/7cc28be2015e4ebb56d585c9cee2949138e4d67e?hp=a6f7c725e21a4b6ed064e92b453331837d12f267;ds=sidebyside properly update statusbar after network restart also ignore wmaster0 interface --- diff --git a/lib/python/Components/Network.py b/lib/python/Components/Network.py index 31a90282..f65d6090 100755 --- a/lib/python/Components/Network.py +++ b/lib/python/Components/Network.py @@ -46,7 +46,7 @@ class Network: for line in result: try: device = devicesPattern.search(line).group() - if device == 'wifi0': + if device in ('wifi0', 'wmaster0'): continue self.getDataForInterface(device, callback) except AttributeError: diff --git a/lib/python/Screens/NetworkSetup.py b/lib/python/Screens/NetworkSetup.py index 50f8c41b..db6b5f9c 100755 --- a/lib/python/Screens/NetworkSetup.py +++ b/lib/python/Screens/NetworkSetup.py @@ -946,6 +946,7 @@ class AdapterSetupConfiguration(Screen, HelpableScreen): def restartfinishedCB(self,data): if data is True: + self.updateStatusbar() self.session.open(MessageBox, _("Finished restarting your network"), type = MessageBox.TYPE_INFO, timeout = 10, default = False) def dataAvail(self,data):