network: fix panel not loading if the wifi module has not ben initialized
close #736
This commit is contained in:
1 parent
35571fce8a
commit
79b3429837
1 file changed
+1
-1
+1
-1
@@ -446,8 +446,8 @@ class NetworkPanel(ScreenPanel):
|
||||
def reload_networks(self, widget=None):
|
||||
self.networks = {}
|
||||
self.labels['networklist'].remove_column(0)
|
||||
self.wifi.rescan()
|
||||
if self.wifi is not None and self.wifi.is_initialized():
|
||||
self.wifi.rescan()
|
||||
GLib.idle_add(self.load_networks)
|
||||
|
||||
def activate(self):
|
||||
|
||||
Reference in new issue
Block a user