1
0
mirror of https://github.com/gryf/wicd.git synced 2025-12-24 07:02:29 +01:00

Fixed a bug that would sometimes cause the tray icon to not display the right connection state on startup.

This commit is contained in:
imdano
2007-12-17 15:44:41 +00:00
parent 7e6f7938d5
commit da4d84b793
3 changed files with 4 additions and 7 deletions

View File

@@ -100,7 +100,6 @@ language['connecting'] = _('Connecting...')
class TrayIcon():
def __init__(self, use_tray):
print 'Use tray:',use_tray
if USE_EGG:
self.tr = self.DapperTrayIconGUI(use_tray)
else:
@@ -118,6 +117,7 @@ class TrayIcon():
self.tried_reconnect = False
self.connection_lost_counter = 0
self.tr = tr
self.update_tray_icon()
def wired_profile_chooser(self):
"""Launch the wired profile chooser."""
@@ -397,6 +397,5 @@ def main(argv):
mainloop.run()
print 'Here.'
if __name__ == '__main__':
main(sys.argv)