changeset 798:3c5b17a3d86e

browser_side: run login callback before window alert so the background starts to be filled before the user clicks
author souliane <souliane@mailoo.org>
date Wed, 09 Dec 2015 02:33:49 +0100
parents 6f2200d720d5
children 8f89d0352ca7
files src/browser/sat_browser/register.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/browser/sat_browser/register.py	Wed Dec 09 02:31:52 2015 +0100
+++ b/src/browser/sat_browser/register.py	Wed Dec 09 02:33:49 2015 +0100
@@ -211,8 +211,8 @@
             # TODO: call stdui action CHANGE_XMPP_PASSWD_ID as it's done in primitivus
             Window.alert(_(u'Your SàT profile has been authenticated but the associated XMPP account failed to connect. Please use another SàT frontend to set another XMPP password.'))
         elif result == C.PROFILE_LOGGED_REGISTERED_WITH_EXT_JID:
+            self.callback()
             Window.alert(_('A profile has been created on this Libervia service using your existing XMPP account. Since you are not using our XMPP server, we can not guaranty that all the extra features (blog, directory...) will fully work.'))
-            self.callback()
         elif result == C.PROFILE_LOGGED:
             self.callback()
         elif result == C.SESSION_ACTIVE: