Marino Faggiana 7 years ago
parent
commit
055a9cf1e5
2 changed files with 4 additions and 2 deletions
  1. 0 1
      iOSClient/Settings/CCAdvanced.m
  2. 4 1
      iOSClient/Settings/CCManageAutoUpload.m

+ 0 - 1
iOSClient/Settings/CCAdvanced.m

@@ -345,7 +345,6 @@
                 [self.hud hideHud];
                 // Inizialized home
                 [[NSNotificationCenter defaultCenter] postNotificationOnMainThreadName:@"initializeMain" object:nil];
-
             });
         });
     }]];

+ 4 - 1
iOSClient/Settings/CCManageAutoUpload.m

@@ -282,8 +282,11 @@
             
         } else {
             
-            [[NCManageDatabase sharedInstance] clearTable:[tableAutoUpload class] account:app.activeAccount];
             [[NCManageDatabase sharedInstance] setAccountAutoUploadFiled:@"autoUploadFull" state:NO];
+
+            [[NCManageDatabase sharedInstance] clearTable:[tableAutoUpload class] account:app.activeAccount];
+            
+            [[CCNetworking sharedNetworking] settingSessionsDownload:NO upload:YES taskStatus:k_taskStatusCancel activeAccount:app.activeAccount activeUser:app.activeUser activeUrl:app.activeUrl];
         }
     }