diff --git a/iOSClient/More/NCMore.swift b/iOSClient/More/NCMore.swift index d88fbe9301..688ac0ad7e 100644 --- a/iOSClient/More/NCMore.swift +++ b/iOSClient/More/NCMore.swift @@ -290,7 +290,7 @@ class NCMore: UIViewController, UITableViewDelegate, UITableViewDataSource { func tableView(_ tableView: UITableView, heightForHeaderInSection index: Int) -> CGFloat { let section = sections[index] - if section.type == .moreApps || sections[index - 1].type == .moreApps { + if section.type == .moreApps || (index > 0 && sections[index - 1].type == .moreApps) { return 1 } else { return 20 @@ -367,8 +367,6 @@ class NCMore: UIViewController, UITableViewDelegate, UITableViewDataSource { } else if item.url == "logout" { let alertController = UIAlertController(title: "", message: NSLocalizedString("_want_delete_", comment: ""), preferredStyle: .alert) let actionYes = UIAlertAction(title: NSLocalizedString("_yes_delete_", comment: ""), style: .default) { (_: UIAlertAction) in - // let manageAccount = CCManageAccount() - // manageAccount.delete(self.appDelegate.account) self.appDelegate.openLogin(selector: NCGlobal.shared.introLogin, openLoginWeb: false) }