diff options
author | Kali Kaneko <kali@leap.se> | 2015-08-21 13:37:25 -0400 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2015-08-24 17:16:35 -0400 |
commit | eb5184845818d9440423251450c6bdcc44e5156d (patch) | |
tree | 0a9dcf915f53d6dc726c2f03d2082913345e124d /src/leap/bitmask/gui/preferences_account_page.py | |
parent | 9a21cc06cfc4024c881b4ba59c10c69e7de90fe9 (diff) |
[feat] allow to disable EIP on build
Diffstat (limited to 'src/leap/bitmask/gui/preferences_account_page.py')
-rw-r--r-- | src/leap/bitmask/gui/preferences_account_page.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/leap/bitmask/gui/preferences_account_page.py b/src/leap/bitmask/gui/preferences_account_page.py index 5661fb66..da9da14d 100644 --- a/src/leap/bitmask/gui/preferences_account_page.py +++ b/src/leap/bitmask/gui/preferences_account_page.py @@ -21,9 +21,10 @@ from functools import partial from PySide import QtCore, QtGui from leap.bitmask.logs.utils import get_logger -from leap.bitmask.gui.ui_preferences_account_page import Ui_PreferencesAccountPage +from leap.bitmask.gui import ui_preferences_account_page as ui_pref from leap.bitmask.gui.passwordwindow import PasswordWindow from leap.bitmask.services import get_service_display_name +from leap.bitmask._components import HAS_EIP logger = get_logger() @@ -42,7 +43,7 @@ class PreferencesAccountPage(QtGui.QWidget): :type app: App """ QtGui.QWidget.__init__(self, parent) - self.ui = Ui_PreferencesAccountPage() + self.ui = ui_pref.Ui_PreferencesAccountPage() self.ui.setupUi(self) self.account = account @@ -120,6 +121,8 @@ class PreferencesAccountPage(QtGui.QWidget): # add one checkbox per service and set the current value # from what is saved in settings. for service in services: + if not HAS_EIP and service == "openvpn": + continue try: checkbox = QtGui.QCheckBox( get_service_display_name(service), self) |