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

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

@@ -230,7 +230,7 @@ class NCCollectionViewCommon: UIViewController, UIGestureRecognizerDelegate, UIS
             
             // PROFILE BUTTON
             
-            if layoutKey == NCGlobal.shared.layoutViewFiles && serverUrl == NCUtilityFileSystem.shared.getHomeServer(urlBase: appDelegate.urlBase, account: appDelegate.account)  {
+            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)
@@ -253,6 +253,8 @@ class NCCollectionViewCommon: UIViewController, UIGestureRecognizerDelegate, UIS
                 profileButton.heightAnchor.constraint(equalToConstant: 30).isActive = true
 
                 navigationItem.setLeftBarButton(UIBarButtonItem(customView: profileButton), animated: true)
+                
+                navigationItem.leftItemsSupplementBackButton = true
             }
         }
     }