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