mirror of
https://github.com/gryf/wicd.git
synced 2025-12-22 05:48:03 +01:00
Always updated the network list if we get a scan finished signal.
This commit is contained in:
@@ -454,8 +454,7 @@ class appGui(object):
|
|||||||
|
|
||||||
"""
|
"""
|
||||||
if not DBUS_AVAIL: return
|
if not DBUS_AVAIL: return
|
||||||
if not self.connecting:
|
gobject.idle_add(self.refresh_networks, None, False, None)
|
||||||
gobject.idle_add(self.refresh_networks, None, False, None)
|
|
||||||
|
|
||||||
def dbus_scan_started(self):
|
def dbus_scan_started(self):
|
||||||
""" Called when a wireless scan starts. """
|
""" Called when a wireless scan starts. """
|
||||||
@@ -464,7 +463,7 @@ class appGui(object):
|
|||||||
|
|
||||||
def refresh_clicked(self, widget=None):
|
def refresh_clicked(self, widget=None):
|
||||||
""" Kick off an asynchronous wireless scan. """
|
""" Kick off an asynchronous wireless scan. """
|
||||||
if not DBUS_AVAIL: return
|
if not DBUS_AVAIL or self.connecting: return
|
||||||
self.refreshing = True
|
self.refreshing = True
|
||||||
wireless.Scan(False)
|
wireless.Scan(False)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user