aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard
diff options
context:
space:
mode:
authorRoopesh Chander <roop@roopc.net>2018-10-24 14:23:18 +0530
committerRoopesh Chander <roop@roopc.net>2018-10-27 15:13:01 +0530
commit5b1876b9981936462df9b46d0efaabd613e084fc (patch)
tree8a0f9692828be60cd12650d9d6b33477f96f51ca /WireGuard
parentTunnel creation: An uneditable field's value should be grey as well (diff)
downloadwireguard-apple-5b1876b9981936462df9b46d0efaabd613e084fc.tar.xz
wireguard-apple-5b1876b9981936462df9b46d0efaabd613e084fc.zip
Tunnel creation: Public key is uneditable
Signed-off-by: Roopesh Chander <roop@roopc.net>
Diffstat (limited to 'WireGuard')
-rw-r--r--WireGuard/WireGuard/UI/iOS/TunnelEditTableViewController.swift4
1 files changed, 4 insertions, 0 deletions
diff --git a/WireGuard/WireGuard/UI/iOS/TunnelEditTableViewController.swift b/WireGuard/WireGuard/UI/iOS/TunnelEditTableViewController.swift
index 5575c75..e486706 100644
--- a/WireGuard/WireGuard/UI/iOS/TunnelEditTableViewController.swift
+++ b/WireGuard/WireGuard/UI/iOS/TunnelEditTableViewController.swift
@@ -163,6 +163,10 @@ extension TunnelEditTableViewController {
} else if (field == .mtu) {
cell.placeholderText = "Automatic"
}
+ // Set editable
+ if (field == .publicKey) {
+ cell.isValueEditable = false
+ }
// Bind values to view model
cell.value = interfaceData[field]
cell.onValueChanged = { [weak interfaceData] value in