1
0
mirror of https://github.com/gryf/wicd.git synced 2025-12-20 04:48:00 +01:00

fixed a screw up in my indentation in edgy.py, changed tabs to 4 spaces everywhere it wasn't already

This commit is contained in:
imdano
2007-07-17 07:19:10 +00:00
parent db591c345e
commit ba48602aa9
5 changed files with 267 additions and 270 deletions

11
edgy.py
View File

@@ -95,7 +95,6 @@ def set_signal_image():
lock = ''
else:
stillWired = False
wireless_ip = wireless.GetWirelessIP()
#If ip returns as None, we are probably returning from hibernation and need to force signal to 0 to avoid crashing
if wireless_ip != None:
@@ -123,9 +122,6 @@ def set_signal_image():
tr.set_from_file("images/bad-signal" + lock + ".png")
elif signal == 0:
tr.set_from_file("images/no-signal.png")
elif wireless_ip == None:
tr.set_from_file("images/no-signal.png")
tr.set_tooltip(language['not_connected'])
#Auto-reconnect code - not sure how well this works. I know that without the ForcedDisconnect check it reconnects you when
#a disconnect is forced. People who have disconnection problems need to test it to determine if it actually works.
#First it will attempt to reconnect to the last known wireless network, and if that fails it should run a scan and try to
@@ -140,9 +136,10 @@ def set_signal_image():
else:
print "Couldn't reconnect to last used network, scanning for an autoconnect network..."
print wireless.AutoConnect(True)
else:
print "Scanning for an autoconnect network..."
print wireless.AutoConnect(True)
elif wireless_ip == None:
tr.set_from_file("images/no-signal.png")
tr.set_tooltip(language['not_connected'])
if not daemon.GetDebugMode():
config.EnableLogging()