summaryrefslogtreecommitdiff
path: root/src/leap
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2017-10-26 00:50:22 +0200
committerKali Kaneko <kali@leap.se>2017-11-01 01:40:28 +0100
commit55630c58c072d4f55852629d22cff80aa5835f72 (patch)
tree579c9cce9a30946bff7f4dfeb88cfddea6fbbc1d /src/leap
parentb0e1bd223368f09e49f13b9ecf04fb0570e04dc0 (diff)
[feature] add tooltip
Diffstat (limited to 'src/leap')
-rw-r--r--src/leap/bitmask/gui/app.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/leap/bitmask/gui/app.py b/src/leap/bitmask/gui/app.py
index 8f763579..283e5a09 100644
--- a/src/leap/bitmask/gui/app.py
+++ b/src/leap/bitmask/gui/app.py
@@ -91,14 +91,19 @@ class WithTrayIcon(QDialog):
def setVPNStatus(self, status):
seticon = self.trayIcon.setIcon
+ settip = self.trayIcon.setToolTip
if status == 'off':
seticon(self.ICON_OFF)
+ settip('Off')
elif status == 'on':
seticon(self.ICON_ON)
+ settip('On')
elif status == 'starting':
seticon(self.ICON_WAIT)
+ settip('Starting')
elif status == 'stopping':
seticon(self.ICON_WAIT)
+ settip('Stopping')
def setUpEventListener(self):
leap_events.register(catalog.VPN_STATUS_CHANGED, self._handle_vpn_event)
@@ -116,7 +121,7 @@ class WithTrayIcon(QDialog):
self.ICON_OFF = QIcon(QPixmap(TRAY_ICONS[2]))
def _createTrayIcon(self):
- self.trayIcon = QSystemTrayIcon(self)
+ self.trayIcon = QSystemTrayIcon(self)
class BrowserWindow(QWebView, WithTrayIcon):