marinofaggiana 4 years ago
parent
commit
3dc47c29bc
1 changed files with 1 additions and 2 deletions
  1. 1 2
      iOSClient/Main/Collection Common/NCCollectionViewCommon.swift

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

@@ -229,9 +229,8 @@ class NCCollectionViewCommon: UIViewController, UIGestureRecognizerDelegate, UIS
             navigationItem.title = titleCurrentFolder
             
             // PROFILE BUTTON
-            let rootViewController = navigationController?.viewControllers.first
             
-            if layoutKey == NCGlobal.shared.layoutViewFiles && rootViewController == self  {
+            if layoutKey == NCGlobal.shared.layoutViewFiles && serverUrl == NCUtilityFileSystem.shared.getHomeServer(urlBase: appDelegate.urlBase, account: appDelegate.account)  {
             
                 let profileButton = UIButton.init(type: .custom)
                 profileButton.frame = CGRect(x: 0, y: 0, width: 30, height: 30)