|
@@ -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)
|