network: fix panel not loading if the wifi module has not ben initialized
close #736
This commit is contained in:
parent
35571fce8a
commit
79b3429837
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user