mirror of
https://github.com/gryf/wicd.git
synced 2025-12-19 20:38:00 +01:00
Fixed more signal display issues
Added a "Connecting..." dialog to tray icon in experimental branch Possibly fixed issue where GUI statusbar would still show up as connected when ethernet cable was unplugged.
This commit is contained in:
11
daemon.py
11
daemon.py
@@ -314,10 +314,10 @@ class ConnectionWizard(dbus.service.Object):
|
||||
def FormatSignalForPrinting(self, signal):
|
||||
''' Returns the suffix to display after the signal strength number '''
|
||||
if self.GetSignalDisplayType() == 1:
|
||||
return ("-" + signal + " dBm")
|
||||
return (signal + " dBm")
|
||||
else:
|
||||
return (signal + "%")
|
||||
# End function GetSignalSuffix
|
||||
# End function FormatSignalForPrinting
|
||||
|
||||
|
||||
@dbus.service.method('org.wicd.daemon')
|
||||
@@ -587,6 +587,13 @@ class ConnectionWizard(dbus.service.Object):
|
||||
return strength
|
||||
#end function GetCurrentSignalStrength
|
||||
|
||||
@dbus.service.method('org.wicd.daemon.wireless')
|
||||
def GetCurrentDBMStrength(self):
|
||||
''' returns the current dbm signal strength '''
|
||||
|
||||
dbm_strength = int(self.wifi.GetDBMStrength())
|
||||
return dbm_strength
|
||||
|
||||
@dbus.service.method('org.wicd.daemon.wireless')
|
||||
def GetCurrentNetwork(self):
|
||||
'''returns the current network'''
|
||||
|
||||
Reference in New Issue
Block a user