1
0
mirror of https://github.com/gryf/wicd.git synced 2025-12-21 21:38:06 +01:00

Fixed cancelling a connection not working.

Stopped the gui status bar from updating while the gui is closed, which reduces CPU usage and should hopefully fix problems with hibernation not working while wicd was running.
This commit is contained in:
imdano
2007-12-19 22:35:07 +00:00
parent da4d84b793
commit 8a0a471764
3 changed files with 70 additions and 7 deletions

3
gui.py
View File

@@ -191,6 +191,7 @@ language['setting_broadcast_address'] = _('Setting broadcast address...')
language['setting_static_dns'] = _('Setting static DNS servers...')
language['setting_static_ip'] = _('Setting static IP addresses...')
language['running_dhcp'] = _('Obtaining IP address...')
language['aborted'] = _('Connection cancelled')
language['done'] = _('Done connecting...')
########################################
@@ -1168,6 +1169,8 @@ class appGui:
def update_statusbar(self):
#should update the status bar
#every couple hundred milliseconds
if self.is_visible == False:
return True
wireless_ip = wireless.GetWirelessIP() #do this so that it doesn't lock up. don't know how or why this works
#but it does so we leave it alone :)
wiredConnecting = wired.CheckIfWiredConnecting()