summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/config
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2016-03-23 12:03:46 -0400
committerKali Kaneko <kali@leap.se>2016-03-23 12:03:46 -0400
commite92e4f1e4d57957af5d8c9e08a6c3c9152409612 (patch)
tree20e14e218fc08ba07c1f48c3a31869350391c1cd /src/leap/bitmask/config
parentc866892b988912a5b9a88edfd6d1e71491617822 (diff)
[feature] allow to disable pixelmail integration
Diffstat (limited to 'src/leap/bitmask/config')
-rw-r--r--src/leap/bitmask/config/leapsettings.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/leap/bitmask/config/leapsettings.py b/src/leap/bitmask/config/leapsettings.py
index 484a8a25..a060c8a4 100644
--- a/src/leap/bitmask/config/leapsettings.py
+++ b/src/leap/bitmask/config/leapsettings.py
@@ -70,6 +70,7 @@ class LeapSettings(object):
PINNED_KEY = "Pinned"
SKIPFIRSTRUN_KEY = "SkipFirstRun"
UUIDFORUSER_KEY = "%s/%s_uuid"
+ PIXELMAIL_KEY = "Pixmail"
# values
GATEWAY_AUTOMATIC = "Automatic"
@@ -352,4 +353,12 @@ class LeapSettings(object):
:type skip: bool
"""
leap_assert_type(skip, bool)
- self._settings.setValue(self.SKIPFIRSTRUN_KEY, skip)
+ self._settings.setvalue(self.skipfirstrun_key, skip)
+
+ def get_pixelmail_enabled(self):
+ return to_bool(self._settings.value(self.PIXELMAIL_KEY, False))
+
+ def set_pixelmail_enabled(self, enabled):
+ leap_assert_type(enabled, bool)
+ self._settings.setvalue(self.PIXELMAIL_KEY, enabled)
+