mirror of
https://github.com/gryf/wicd.git
synced 2026-01-06 05:44:18 +01:00
Refactored a few daemon methods from bring registered under the 'wireless' service to 'daemon'.
Fixed the wired autoconnect profile chooser, which was badly broken. Added a check to GetPluggedIn() that makes sure that the wired interface is up before checking. If it's not, it tries to put it up. This is necessary because ethtool doesn't make this check for us, as mii-tool did.
This commit is contained in:
4
wicd.py
4
wicd.py
@@ -135,8 +135,8 @@ class TrayIcon():
|
||||
|
||||
def wired_profile_chooser(self):
|
||||
"""Launch the wired profile chooser."""
|
||||
daemon.SetNeedWiredProfileChooser(False)
|
||||
gui.WiredProfileChooser()
|
||||
daemon.SetNeedWiredProfileChooser(False)
|
||||
|
||||
def update_tray_icon(self):
|
||||
"""Updates the tray icon and current connection status"""
|
||||
@@ -364,7 +364,7 @@ class TrayIcon():
|
||||
gtk.StatusIcon.__init__(self)
|
||||
|
||||
self.current_icon_path = ''
|
||||
wireless.SetForcedDisconnect(False)
|
||||
daemon.SetForcedDisconnect(False)
|
||||
self.set_visible(True)
|
||||
self.connect('activate', self.on_activate)
|
||||
self.connect('popup-menu', self.on_popup_menu)
|
||||
|
||||
Reference in New Issue
Block a user