marinofaggiana 4 년 전
부모
커밋
c83ee57895
1개의 변경된 파일5개의 추가작업 그리고 4개의 파일을 삭제
  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()
         }
     }
 }