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

+ 3 - 2
iOSClient/Main/Collection/NCCollectionViewCommon.swift

@@ -209,8 +209,9 @@ class NCCollectionViewCommon: UIViewController, UIGestureRecognizerDelegate, UIS
 
     @objc func initializeMain() {
         
-        if isRoot {
-            print("root")
+        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 {