UI: account creation

- add switch button for account password
- move link to account explanation to popover help view
- fix constraints

Change-Id: I13e2da4b328f77a882bac679e744b8f2086a5344
diff --git a/src/AppDelegate.mm b/src/AppDelegate.mm
index a9fdbdc..534c61b 100644
--- a/src/AppDelegate.mm
+++ b/src/AppDelegate.mm
@@ -31,6 +31,7 @@
 #import <account.h>
 #import <AvailableAccountModel.h>
 #import <api/lrc.h>
+#import <api/newaccountmodel.h>
 
 
 #if ENABLE_SPARKLE
@@ -258,17 +259,7 @@
 
 - (BOOL) checkForRingAccount
 {
-    BOOL foundRingAcc = NO;
-    for (int i = 0 ; i < AccountModel::instance().rowCount() ; ++i) {
-        QModelIndex idx = AccountModel::instance().index(i);
-        Account* acc = AccountModel::instance().getAccountByModelIndex(idx);
-        if(acc->protocol() == Account::Protocol::RING && !acc->isNew()) {
-            if (acc->displayName().isEmpty())
-                acc->setDisplayName(acc->alias());
-            foundRingAcc = YES;
-        }
-    }
-    return foundRingAcc;
+    return !lrc->getAccountModel().getAccountList().empty();
 }
 
 -(void)applicationWillFinishLaunching:(NSNotification *)aNotification