|
@@ -3291,7 +3291,6 @@
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- //NSArray *listTableAccount = [CCCoreData getAllTableAccount];
|
|
|
NSArray *listAccount = [[NCManageDatabase sharedInstance] getAccounts];
|
|
|
|
|
|
NSMutableArray *menuArray = [NSMutableArray new];
|
|
@@ -3356,9 +3355,7 @@
|
|
|
[[CCNetworking sharedNetworking] settingSessionsDownload:YES upload:YES taskStatus:k_taskStatusCancel activeAccount:app.activeAccount activeUser:app.activeUser activeUrl:app.activeUrl];
|
|
|
|
|
|
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, 0.2 * NSEC_PER_SEC), dispatch_get_main_queue(), ^{
|
|
|
-
|
|
|
- //TableAccount *tableAccount = [CCCoreData setActiveAccount:[sender argument]];
|
|
|
-
|
|
|
+
|
|
|
tableAccount *tableAccount = [[NCManageDatabase sharedInstance] setAccountActive:[sender argument]];
|
|
|
if (tableAccount)
|
|
|
[app settingActiveAccount:tableAccount.account activeUrl:tableAccount.url activeUser:tableAccount.user activePassword:tableAccount.password];
|