|
@@ -326,8 +326,17 @@
|
|
|
|
|
|
- (void)ChangeDefaultAccount:(NSString *)account
|
|
|
{
|
|
|
+ if ([app.netQueue operationCount] > 0 || [app.netQueueDownload operationCount] > 0 || [app.netQueueDownloadWWan operationCount] > 0 || [app.netQueueUpload operationCount] > 0 || [app.netQueueUploadWWan operationCount] > 0 || [app.netQueueUploadCameraAllPhoto operationCount] > 0) {
|
|
|
+
|
|
|
+ [app messageNotification:@"_transfer_in_queue_" description:nil visible:YES delay:dismissAfterSecond type:TWMessageBarMessageTypeInfo];
|
|
|
+ [self UpdateForm];
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
+ // removed this -> ?????
|
|
|
[app cancelAllOperations];
|
|
|
[[CCNetworking sharedNetworking] settingSessionsDownload:YES upload:YES taskStatus:taskStatusCancel activeAccount:app.activeAccount activeUser:app.activeUser activeUrl:app.activeUrl];
|
|
|
+ // removed this -> ?????
|
|
|
|
|
|
// change account
|
|
|
TableAccount *tableAccount = [CCCoreData setActiveAccount:account];
|