summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/gui/account.py
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2016-04-18 23:44:12 -0700
committerKali Kaneko <kali@leap.se>2016-04-19 12:00:23 -0400
commit229f803235ae9b9a71313d11071c7a0fbea0a681 (patch)
treefada7035628c90757b6b0cd7cf34182d1b6269fc /src/leap/bitmask/gui/account.py
parentc6db8a1f9ba7b6fc9dd117c0a699f4dfd339a375 (diff)
[feature] add email panel to preferences
Diffstat (limited to 'src/leap/bitmask/gui/account.py')
-rw-r--r--src/leap/bitmask/gui/account.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/leap/bitmask/gui/account.py b/src/leap/bitmask/gui/account.py
index 81f96389..5e43c8fe 100644
--- a/src/leap/bitmask/gui/account.py
+++ b/src/leap/bitmask/gui/account.py
@@ -20,7 +20,7 @@ A frontend GUI object to hold the current username and domain.
from leap.bitmask.util import make_address
from leap.bitmask.config.leapsettings import LeapSettings
from leap.bitmask.services import EIP_SERVICE, MX_SERVICE
-
+from leap.bitmask._components import HAS_EIP, HAS_MAIL
class Account():
@@ -42,8 +42,8 @@ class Account():
"""
return self._settings.get_enabled_services(self.domain)
- def is_email_enabled(self):
- return MX_SERVICE in self.services()
+ def has_email(self):
+ return HAS_MAIL and MX_SERVICE in self.services()
- def is_eip_enabled(self):
- return EIP_SERVICE in self.services()
+ def has_eip(self):
+ return HAS_EIP and EIP_SERVICE in self.services()