浏览代码

new manage account

marinofaggiana 6 年之前
父节点
当前提交
9f7d8ad854
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      iOSClient/Settings/CCManageAccount.m

+ 4 - 1
iOSClient/Settings/CCManageAccount.m

@@ -177,7 +177,8 @@
         [section addFormRow:row];
         [section addFormRow:row];
     }
     }
     
     
-    // Thirt Part 
+    // Section : THIRT PART -------------------------------------------
+
     if ([NCBrandOptions.sharedInstance.brandInitials isEqualToString:@"hc"]) {
     if ([NCBrandOptions.sharedInstance.brandInitials isEqualToString:@"hc"]) {
     
     
         section = [XLFormSectionDescriptor formSection];
         section = [XLFormSectionDescriptor formSection];
@@ -375,6 +376,8 @@
         NSArray *listAccount = [[NCManageDatabase sharedInstance] getAccounts];
         NSArray *listAccount = [[NCManageDatabase sharedInstance] getAccounts];
         if ([listAccount count] > 0) {
         if ([listAccount count] > 0) {
             [self ChangeDefaultAccount:listAccount[0]];
             [self ChangeDefaultAccount:listAccount[0]];
+        } else {
+            [self initializeForm];
         }
         }
     }]];
     }]];