summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/gui/mainwindow.py
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2016-03-24 10:04:38 -0400
committerKali Kaneko <kali@leap.se>2016-03-24 10:04:38 -0400
commit106d202012f8f052a3cabe044d7287d2283655fc (patch)
tree025aadf725ed8d550310df3b3448e4a26a1105ec /src/leap/bitmask/gui/mainwindow.py
parentf9cb960dea642ec2e9cced1ab4712577cc0f3469 (diff)
[feature] hide browser menu entry if pixelated is disabled
Diffstat (limited to 'src/leap/bitmask/gui/mainwindow.py')
-rw-r--r--src/leap/bitmask/gui/mainwindow.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/leap/bitmask/gui/mainwindow.py b/src/leap/bitmask/gui/mainwindow.py
index 1f497d2d..839aae87 100644
--- a/src/leap/bitmask/gui/mainwindow.py
+++ b/src/leap/bitmask/gui/mainwindow.py
@@ -222,6 +222,10 @@ class MainWindow(QtGui.QMainWindow, SignalTracker):
self.ui.action_preferences.triggered.connect(self._show_preferences)
self.ui.action_pixelated_mail.triggered.connect(
self._show_pixelated_browser)
+
+ pixelated_enabled = self._settings.get_pixelmail_enabled()
+ self.ui.action_pixelated_mail.setVisible(pixelated_enabled)
+
self.ui.action_about_leap.triggered.connect(self._about)
self.ui.action_quit.triggered.connect(self.quit)
self.ui.action_wizard.triggered.connect(self._show_wizard)