marinofaggiana 4 rokov pred
rodič
commit
c83ee57895
1 zmenil súbory, kde vykonal 5 pridanie a 4 odobranie
  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()
         }
     }
 }