Skip to content

Commit

Permalink
Add title to proxy-section (#2382)
Browse files Browse the repository at this point in the history
  • Loading branch information
zeitschlag committed Nov 8, 2024
1 parent ebe04fa commit 91a7667
Showing 1 changed file with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ enum ProxySettingsSection: Int {
case .enableProxies:
return nil
case .proxies:
return "Proxies"
return String.localized("proxy_list_header")
case .add:
return nil
}
Expand Down Expand Up @@ -211,6 +211,18 @@ extension ProxySettingsViewController {
}
}
}

override func tableView(_ tableView: UITableView, titleForHeaderInSection section: Int) -> String? {
guard proxies.isEmpty == false else { return nil }


if section == ProxySettingsSection.proxies.rawValue {
return ProxySettingsSection.proxies.title
} else {
return nil
}

}
}

// MARK: - UITableViewDelegate
Expand Down

0 comments on commit 91a7667

Please sign in to comment.