From: BenoƮt Fontaine Date: Fri, 27 Jul 2018 15:57:29 +0000 (+0200) Subject: GUI: Remove button"Add Temple informations" for user without LDS account X-Git-Url: https://git.nutra.tk/v1?a=commitdiff_plain;h=480b9ecc3f107342269641e2c8918ceb630370d4;p=gamesguru%2Fgetmyancestors.git GUI: Remove button"Add Temple informations" for user without LDS account --- diff --git a/fstogedcom.py b/fstogedcom.py index 52d0f23..5be2d84 100644 --- a/fstogedcom.py +++ b/fstogedcom.py @@ -388,7 +388,8 @@ class Download(Frame): self.title.config(text=_('Options')) cache.delete('lang') cache.add('lang', self.fs.lang) - self.options = Options(self.form, True) + lds_account = self.fs.get_url('/platform/tree/persons/%s/ordinances.json' % self.fs.get_userid()) != 'error' + self.options = Options(self.form, lds_account) self.info('') self.sign_in.destroy() self.options.pack()