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

- Fixed a crash bug caused by dBm signal strength not being found correctly.

- Fixed a crash caused by an incorrectly named variable in wicd.py.
This commit is contained in:
imdano
2007-11-18 14:19:50 +00:00
parent 3eea8cde55
commit b61018cc17
3 changed files with 9 additions and 7 deletions

View File

@@ -222,6 +222,7 @@ class TrayIcon():
self.tr.set_from_file("images/no-signal.png")
if daemon.CheckIfConnecting():
self.tr.set_tooltip(language['connecting'])
self.tr.set_from_file(wpath.images + "no-signal.png")
else:
self.tr.set_tooltip(language['not_connected'])
daemon.SetCurrentInterface('')
@@ -360,7 +361,7 @@ class TrayIcon():
''' Toggles the wicd GUI '''
if self.gui_win == None:
self.gui_win = gui.appGui()
elif self.gui_win.is_active == False:
elif self.gui_win.is_visible == False:
self.gui_win.show_win()
else:
self.gui_win.exit()
@@ -474,8 +475,8 @@ def main(argv):
use_tray = False
# Redirect stderr and stdout for logging purposes
sys.stderr = log
sys.stdout = log
#sys.stderr = log
#sys.stdout = log
# Set up the tray icon GUI and backend
tray_icon = TrayIcon(use_tray)
@@ -498,4 +499,4 @@ def main(argv):
mainloop.run()
if __name__ == '__main__':
main(sys.argv)
main(sys.argv)