Przeglądaj źródła

Improvements

Signed-off-by: marinofaggiana <ios@nextcloud.com>
marinofaggiana 2 lat temu
rodzic
commit
14ad68ee75
1 zmienionych plików z 7 dodań i 5 usunięć
  1. 7 5
      iOSClient/Files/NCFiles.swift

+ 7 - 5
iOSClient/Files/NCFiles.swift

@@ -127,14 +127,16 @@ class NCFiles: NCCollectionViewCommon {
                 }
             }
 
+            self.isReloadDataSourceNetworkInProgress = false
+            self.richWorkspaceText = tableDirectory?.richWorkspace
+
             DispatchQueue.main.async {
-                self.isReloadDataSourceNetworkInProgress = false
-                self.richWorkspaceText = tableDirectory?.richWorkspace
                 self.refreshControl.endRefreshing()
                 self.collectionView?.reloadData()
-                if metadatasUpdate?.count ?? 0 > 0 || metadatasDelete?.count ?? 0 > 0 || forced {
-                    self.reloadDataSource(forced: false)
-                }
+            }
+
+            if metadatasUpdate?.count ?? 0 > 0 || metadatasDelete?.count ?? 0 > 0 || forced {
+                self.reloadDataSource(forced: false)
             }
         }
     }