marinofaggiana 4 년 전
부모
커밋
fea22c371e
1개의 변경된 파일5개의 추가작업 그리고 5개의 파일을 삭제
  1. 5 5
      iOSClient/Main/Collection/NCCollectionViewCommon.swift

+ 5 - 5
iOSClient/Main/Collection/NCCollectionViewCommon.swift

@@ -209,15 +209,15 @@ class NCCollectionViewCommon: UIViewController, UIGestureRecognizerDelegate, UIS
 
     @objc func initializeMain() {
         
-        if isRoot && layoutKey == k_layout_view_files && appDelegate.account.count > 0 {
-            serverUrl = NCUtility.shared.getHomeServer(urlBase: appDelegate.urlBase, account: appDelegate.account)
-            reloadDataSourceNetwork(forced: true)
-        }
-        
         if searchController?.isActive ?? false {
             searchController?.isActive = false
         }
         
+        if isRoot && layoutKey == k_layout_view_files && appDelegate.account.count > 0 {
+            serverUrl = NCUtility.shared.getHomeServer(urlBase: appDelegate.urlBase, account: appDelegate.account)
+            reloadDataSourceNetwork(forced: true)
+        }
+                
         self.navigationController?.popToRootViewController(animated: false)
         appDelegate.listFilesVC.removeAllObjects()
         appDelegate.listFavoriteVC.removeAllObjects()