فهرست منبع

Improved search

Signed-off-by: marinofaggiana <ios@nextcloud.com>
marinofaggiana 2 سال پیش
والد
کامیت
1f42251690
1فایلهای تغییر یافته به همراه6 افزوده شده و 2 حذف شده
  1. 6 2
      iOSClient/Main/Collection Common/NCCollectionViewCommon.swift

+ 6 - 2
iOSClient/Main/Collection Common/NCCollectionViewCommon.swift

@@ -186,7 +186,9 @@ class NCCollectionViewCommon: UIViewController, UIGestureRecognizerDelegate, UIS
         setNavigationItem()
 
         reloadDataSource(forced: false)
-        reloadDataSourceNetwork()
+        if !isSearching {
+            reloadDataSourceNetwork()
+        }
     }
 
     override func viewWillDisappear(_ animated: Bool) {
@@ -340,7 +342,9 @@ class NCCollectionViewCommon: UIViewController, UIGestureRecognizerDelegate, UIS
     }
 
     @objc func reloadDataSourceNetworkForced(_ notification: NSNotification) {
-        reloadDataSourceNetwork(forced: true)
+        if !isSearching {
+            reloadDataSourceNetwork(forced: true)
+        }
     }
 
     @objc func changeStatusFolderE2EE(_ notification: NSNotification) {