summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorkali <kali@leap.se>2012-11-14 02:53:28 +0900
committerkali <kali@leap.se>2012-11-14 02:53:28 +0900
commite111e9de0d33d12503233e754e2e4b01133acec9 (patch)
tree51a80d552d38faa952c500a6a99610ec3e30b6c7 /src
parentbd33a6bf8e6b56b4cfa5e2b008edc18d5f6a0c3a (diff)
hide the systray icon until the firstrun wizard is complete
Closes #762
Diffstat (limited to 'src')
-rw-r--r--src/leap/baseapp/mainwindow.py1
-rw-r--r--src/leap/baseapp/systray.py6
2 files changed, 5 insertions, 2 deletions
diff --git a/src/leap/baseapp/mainwindow.py b/src/leap/baseapp/mainwindow.py
index 41130852..f07ebb7d 100644
--- a/src/leap/baseapp/mainwindow.py
+++ b/src/leap/baseapp/mainwindow.py
@@ -164,4 +164,5 @@ class LeapWindow(QtGui.QMainWindow,
self.cleanupAndQuit()
def runchecks_and_eipconnect(self):
+ self.show_systray_icon()
self.initchecks.begin()
diff --git a/src/leap/baseapp/systray.py b/src/leap/baseapp/systray.py
index 94a7a8f2..49f044aa 100644
--- a/src/leap/baseapp/systray.py
+++ b/src/leap/baseapp/systray.py
@@ -44,12 +44,14 @@ class StatusAwareTrayIconMixin(object):
self.createIconGroupBox()
self.createActions()
self.createTrayIcon()
- #logger.debug('showing tray icon................')
- self.trayIcon.show()
# not sure if this really belongs here, but...
self.timer = QtCore.QTimer()
+ def show_systray_icon(self):
+ #logger.debug('showing tray icon................')
+ self.trayIcon.show()
+
def createIconGroupBox(self):
"""
dummy icongroupbox