summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--changes/bug-3821_inconsistent-hide-show-mainwindow1
-rw-r--r--src/leap/bitmask/gui/mainwindow.py4
2 files changed, 4 insertions, 1 deletions
diff --git a/changes/bug-3821_inconsistent-hide-show-mainwindow b/changes/bug-3821_inconsistent-hide-show-mainwindow
new file mode 100644
index 00000000..3fb05a85
--- /dev/null
+++ b/changes/bug-3821_inconsistent-hide-show-mainwindow
@@ -0,0 +1 @@
+ o Inconsistent hide/show main window from tray action. Closes #3821.
diff --git a/src/leap/bitmask/gui/mainwindow.py b/src/leap/bitmask/gui/mainwindow.py
index 2942d4c8..98cfacb1 100644
--- a/src/leap/bitmask/gui/mainwindow.py
+++ b/src/leap/bitmask/gui/mainwindow.py
@@ -696,7 +696,9 @@ class MainWindow(QtGui.QMainWindow):
qApp.setQuitOnLastWindowClosed(False)
self.hide()
- self._update_hideshow_menu()
+ # Wait a bit until the window visibility has changed so
+ # the menu is set with the correct value.
+ QtCore.QTimer.singleShot(500, self._update_hideshow_menu)
def _center_window(self):
"""