marinofaggiana 4 anni fa
parent
commit
c83ee57895
1 ha cambiato i file con 5 aggiunte e 4 eliminazioni
  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()
         }
     }
 }