1
0
mirror of https://github.com/gryf/wicd.git synced 2026-02-10 02:25:47 +01:00

Added mhenze's patch to add last used wired profile

This commit is contained in:
compwiz18
2007-10-04 03:31:07 +00:00
parent 2aa36c7329
commit 8f2dfb5361
3 changed files with 64 additions and 2 deletions

View File

@@ -469,6 +469,12 @@ class WirelessConnectThread(ConnectThread):
else:
wnettools.SetDNS(self.network.get('dns1'),
self.network.get('dns2'), self.network.get('dns3'))
#save as last used profile
print 'Saving last used profile'
config.UnsetLastUsedDefault() # Makes sure there is only one last used profile at a time
self.network.SetWiredProperty("lastused",True)
config.SaveWiredNetworkProfile(self.profilename)
#execute post-connection script if necessary
if misc.Noneify(self.after_script):