Marino Faggiana 7 gadi atpakaļ
vecāks
revīzija
69d57ebb53
2 mainītis faili ar 4 papildinājumiem un 12 dzēšanām
  1. 1 3
      iOSClient/AppDelegate.m
  2. 3 9
      iOSClient/Main/CCMain.m

+ 1 - 3
iOSClient/AppDelegate.m

@@ -243,10 +243,8 @@
 - (void)applicationWillEnterForeground:(UIApplication *)application
 {    
     // refresh active Main
-    if (_activeMain) {
-        [_activeMain reloadDatasource];
+    if (_activeMain)
         [_activeMain readFileReloadFolder];
-    }
     
     // Initializations
     [self applicationInitialized];

+ 3 - 9
iOSClient/Main/CCMain.m

@@ -183,9 +183,6 @@
         // Settings this folder & delegate & Loading datasource
         appDelegate.directoryUser = [CCUtility getDirectoryActiveUser:appDelegate.activeUser activeUrl:appDelegate.activeUrl];
         
-        // Load Datasource
-        [self reloadDatasource:_serverUrl];
-        
         // Read (File) Folder
         [self readFileReloadFolder];
     }
@@ -249,9 +246,6 @@
         
         if (appDelegate.activeAccount.length > 0 && [_selectedFileIDsMetadatas count] == 0) {
         
-            // Load Datasource
-            [self reloadDatasource:_serverUrl];
-            
             // Read (file) Folder
             [self readFileReloadFolder];
         }
@@ -369,9 +363,6 @@
             appDelegate.sharesUserAndGroup = results[1];
         }
         
-        // Load Datasource
-        [self reloadDatasource:_serverUrl];
-
         // Read (File) Folder
         [self readFileReloadFolder];
         
@@ -1705,6 +1696,9 @@
     if (!_serverUrl || !appDelegate.activeAccount || appDelegate.maintenanceMode)
         return;
     
+    // Load Datasource
+    [self reloadDatasource];
+    
     CCMetadataNet *metadataNet = [[CCMetadataNet alloc] initWithAccount:appDelegate.activeAccount];
 
     metadataNet.action = actionReadFile;