summaryrefslogtreecommitdiff
path: root/src/leap/baseapp/systray.py
diff options
context:
space:
mode:
authorkali <kali@leap.se>2012-12-27 07:08:10 +0900
committerkali <kali@leap.se>2012-12-27 07:08:10 +0900
commitb2e1e26e182bc86e01440ab3a93d3953f1fbcb4b (patch)
treeb731e31bc8ba7617634fb3f1c65ddfcdc89085cb /src/leap/baseapp/systray.py
parentb4af406e6cf233d939e3dfa5b5c9b2241b6d8ea0 (diff)
fix window not raising to front in osx
Diffstat (limited to 'src/leap/baseapp/systray.py')
-rw-r--r--src/leap/baseapp/systray.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/leap/baseapp/systray.py b/src/leap/baseapp/systray.py
index 0dd0f195..93fab716 100644
--- a/src/leap/baseapp/systray.py
+++ b/src/leap/baseapp/systray.py
@@ -1,4 +1,6 @@
import logging
+import sys
+
import sip
sip.setapi('QString', 2)
sip.setapi('QVariant', 2)
@@ -156,6 +158,8 @@ class StatusAwareTrayIconMixin(object):
self.hide()
else:
self.show()
+ if sys.platform == "darwin":
+ self.raise_()
def about(self):
# move to widget