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()
         }
     }
 }