marinofaggiana il y a 4 ans
Parent
commit
c83ee57895
1 fichiers modifiés avec 5 ajouts et 4 suppressions
  1. 5 4
      iOSClient/Offline/NCOffline.swift

+ 5 - 4
iOSClient/Offline/NCOffline.swift

@@ -98,7 +98,11 @@ class NCOffline: NCCollectionViewCommon  {
             return
         }
                     
-        if serverUrl != "" {
+        if serverUrl == "" {
+            
+            self.reloadDataSource()
+            
+        } else {
            
             isReloadDataSourceNetworkInProgress = true
             collectionView?.reloadData()
@@ -117,9 +121,6 @@ class NCOffline: NCCollectionViewCommon  {
                 self.isReloadDataSourceNetworkInProgress = false
                 self.reloadDataSource()
             }
-            
-        } else {
-            self.reloadDataSource()
         }
     }
 }