Эх сурвалжийг харах

#2083

Signed-off-by: marinofaggiana <ios@nextcloud.com>
marinofaggiana 2 жил өмнө
parent
commit
2f5e1fe6df

+ 1 - 2
iOSClient/Files/NCFiles.swift

@@ -111,8 +111,7 @@ class NCFiles: NCCollectionViewCommon {
         }
     }
 
-    override func reloadDataSourceNetwork(forced: Bool = false) {
-        super.reloadDataSourceNetwork(forced: forced)
+    override func reloadDataSourceNetwork(forced: Bool = false) {        super.reloadDataSourceNetwork(forced: forced)
         guard !isSearching else {
             networkSearch()
             return

+ 8 - 1
iOSClient/Main/Collection Common/NCCollectionViewCommon.swift

@@ -293,6 +293,7 @@ class NCCollectionViewCommon: UIViewController, UIGestureRecognizerDelegate, UIS
     }
 
     @objc func changeThemingWithReloadData() {
+        
         changeTheming()
         collectionView.reloadData()
     }
@@ -341,6 +342,7 @@ class NCCollectionViewCommon: UIViewController, UIGestureRecognizerDelegate, UIS
     }
 
     @objc func reloadDataSourceNetworkForced(_ notification: NSNotification) {
+
         if !isSearching {
             reloadDataSourceNetwork(forced: true)
         }
@@ -425,7 +427,12 @@ class NCCollectionViewCommon: UIViewController, UIGestureRecognizerDelegate, UIS
     }
 
     @objc func renameFile(_ notification: NSNotification) {
-        reloadDataSource()
+
+        if isSearching {
+            reloadDataSourceNetwork()
+        } else {
+            reloadDataSource()
+        }
     }
 
     @objc func createFolder(_ notification: NSNotification) {