Marino Faggiana 6 years ago
parent
commit
721039e226
1 changed files with 2 additions and 0 deletions
  1. 2 0
      iOSClient/Main/CCMain.m

+ 2 - 0
iOSClient/Main/CCMain.m

@@ -3601,11 +3601,13 @@
                                     handler:^(AHKActionSheet *as) {
                                         if (directoryOnDevice == nil) {
                                             [[NCManageDatabase sharedInstance] setDirectoryWithServerUrl:dirServerUrl onDevice:true];
+                                            [[CCSynchronize sharedSynchronize] readFolder:dirServerUrl selector:selectorReadFolderWithDownload];
                                         } else if (directoryOnDevice.serverUrl.length == dirServerUrl.length) {
                                             [[NCManageDatabase sharedInstance] setDirectoryWithServerUrl:dirServerUrl onDevice:false];
                                         } else if (directoryOnDevice.serverUrl.length > dirServerUrl.length) {
                                             [[NCManageDatabase sharedInstance] setDirectoryWithServerUrl:directoryOnDevice.serverUrl onDevice:false];
                                             [[NCManageDatabase sharedInstance] setDirectoryWithServerUrl:dirServerUrl onDevice:true];
+                                            [[CCSynchronize sharedSynchronize] readFolder:dirServerUrl selector:selectorReadFolderWithDownload];
                                         }
                                     }];
         }