summaryrefslogtreecommitdiff
path: root/src/leap/baseapp/systray.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/leap/baseapp/systray.py')
-rw-r--r--src/leap/baseapp/systray.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/leap/baseapp/systray.py b/src/leap/baseapp/systray.py
index 8777207c..06be2975 100644
--- a/src/leap/baseapp/systray.py
+++ b/src/leap/baseapp/systray.py
@@ -129,12 +129,9 @@ class StatusAwareTrayIconMixin(object):
def toggleEIPAct(self):
# this is too simple by now.
- # XXX We need to get the REAL info for Encryption state.
- # (now is ON as soon as vpn launched)
-
# XXX get STATUS CONSTANTS INSTEAD
- icon_status = self.conductor.status.get_state_icon()
+ icon_status = self.conductor.get_icon_name()
if icon_status == "connected":
self.connAct.setEnabled(True)
self.connAct.setText('Encryption ON turn o&ff')