mirror of
https://github.com/gryf/wicd.git
synced 2026-03-09 02:55:55 +01:00
- Make the GUI behave better when a disconnect button is pushed.
- Move some of the libnotify logic to guiutil.py and add support for displaying some error messages in a libnotify pop-up. - Apply some patches provided by sunseraph. Tweak to the channel regex and checking for a valid AP bssid when monitoring a wireless connection. Set essid, bssid, and channel in separate calls to iwconfig. - Add caching for ifconfig and iwconfig results in wnettools.py. That way we're not needlessly calling the same command a bunch of times in a short period of time (2 seconds). This removes the need for us to pass around iwconfig/ifconfig output elsewhere, though I've left it in for now. - Remove unneeded BackendManager instance from networking.py - Fix last used wired networking autoconnection method
This commit is contained in:
@@ -1300,6 +1300,7 @@ class WiredDaemon(dbus.service.Object):
|
||||
self.daemon = daemon
|
||||
self.wired = wired
|
||||
self._debug_mode = debug
|
||||
self._cur_wired_prof_name = ""
|
||||
self.WiredNetwork = {}
|
||||
self.config = ConfigManager(os.path.join(wpath.etc,
|
||||
"wired-settings.conf"),
|
||||
@@ -1413,6 +1414,8 @@ class WiredDaemon(dbus.service.Object):
|
||||
self.wired.disconnect_script = self.GetWiredProperty("disconnectscript")
|
||||
self.daemon.wireless_bus.wifi.Disconnect()
|
||||
self.daemon.SetForcedDisconnect(False)
|
||||
self.UnsetWiredLastUsed()
|
||||
self.config.set(self._cur_wired_prof_name, "lastused", True, write=True)
|
||||
self.wired.Connect(self.WiredNetwork, debug=self.debug_mode)
|
||||
self.daemon.UpdateState()
|
||||
|
||||
@@ -1511,8 +1514,10 @@ class WiredDaemon(dbus.service.Object):
|
||||
profile['use_global_dns'] = bool(profile.get('use_global_dns'))
|
||||
profile['use_static_dns'] = bool(profile.get('use_static_dns'))
|
||||
self.WiredNetwork = profile
|
||||
self._cur_wired_prof_name = profilename
|
||||
return "100: Loaded Profile"
|
||||
else:
|
||||
self._cur_wired_prof_name = ""
|
||||
self.WiredNetwork = {}
|
||||
return "500: Profile Not Found"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user