mirror of
https://github.com/gryf/wicd.git
synced 2026-02-22 18:15:53 +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:
11
edgy.py
11
edgy.py
@@ -95,7 +95,6 @@ def set_signal_image():
|
|||||||
lock = ''
|
lock = ''
|
||||||
else:
|
else:
|
||||||
stillWired = False
|
stillWired = False
|
||||||
|
|
||||||
wireless_ip = wireless.GetWirelessIP()
|
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 ip returns as None, we are probably returning from hibernation and need to force signal to 0 to avoid crashing
|
||||||
if wireless_ip != None:
|
if wireless_ip != None:
|
||||||
@@ -123,9 +122,6 @@ def set_signal_image():
|
|||||||
tr.set_from_file("images/bad-signal" + lock + ".png")
|
tr.set_from_file("images/bad-signal" + lock + ".png")
|
||||||
elif signal == 0:
|
elif signal == 0:
|
||||||
tr.set_from_file("images/no-signal.png")
|
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
|
#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.
|
#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
|
#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:
|
else:
|
||||||
print "Couldn't reconnect to last used network, scanning for an autoconnect network..."
|
print "Couldn't reconnect to last used network, scanning for an autoconnect network..."
|
||||||
print wireless.AutoConnect(True)
|
print wireless.AutoConnect(True)
|
||||||
else:
|
|
||||||
print "Scanning for an autoconnect network..."
|
elif wireless_ip == None:
|
||||||
print wireless.AutoConnect(True)
|
tr.set_from_file("images/no-signal.png")
|
||||||
|
tr.set_tooltip(language['not_connected'])
|
||||||
|
|
||||||
if not daemon.GetDebugMode():
|
if not daemon.GetDebugMode():
|
||||||
config.EnableLogging()
|
config.EnableLogging()
|
||||||
|
|||||||
Reference in New Issue
Block a user