diff options
author | kali <kali@leap.se> | 2013-06-15 01:44:59 +0900 |
---|---|---|
committer | kali <kali@leap.se> | 2013-06-15 01:44:59 +0900 |
commit | 614bb802c11cee04de8a2e42c6666fa899ca0b33 (patch) | |
tree | e6378288d6f30d19a2416d723eda45ce62c4c594 /src/leap | |
parent | 08cb76edd1708ab77e608876ed2812f8b242889f (diff) | |
parent | 699eb99b1092335ee681dacdc06e6bf9c89827ef (diff) |
Merge remote-tracking branch 'chiiph/bug/fix_tray_behaviour' into develop
Diffstat (limited to 'src/leap')
-rw-r--r-- | src/leap/gui/mainwindow.py | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/src/leap/gui/mainwindow.py b/src/leap/gui/mainwindow.py index a5905679..80876c27 100644 --- a/src/leap/gui/mainwindow.py +++ b/src/leap/gui/mainwindow.py @@ -529,18 +529,17 @@ class MainWindow(QtGui.QMainWindow): self.tr("Show Main Window"), self.tr("Hide Main Window"))[int(visible)] - if reason != QtGui.QSystemTrayIcon.Context: - # set labels - visible = self.isVisible() - self._action_visible.setText(get_action(visible)) - - context_menu = self._systray.contextMenu() - # for some reason, context_menu.show() - # is failing in a way beyond my understanding. - # (not working the first time it's clicked). - # this works however. - # XXX in osx it shows some glitches. - context_menu.exec_(self._systray.geometry().center()) + # set labels + visible = self.isVisible() + self._action_visible.setText(get_action(visible)) + + context_menu = self._systray.contextMenu() + # for some reason, context_menu.show() + # is failing in a way beyond my understanding. + # (not working the first time it's clicked). + # this works however. + # XXX in osx it shows some glitches. + context_menu.exec_(self._systray.geometry().center()) def _toggle_visible(self): """ |