aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard/WireGuard/UI/macOS/View
diff options
context:
space:
mode:
authorRoopesh Chander <roop@roopc.net>2019-01-07 13:04:50 +0530
committerRoopesh Chander <roop@roopc.net>2019-01-14 14:52:33 +0530
commitf7b2f73015b51d939d38ed5284f40cd46c73237f (patch)
tree31f9f8cb939107aae21215dd6b7a572e447ef239 /WireGuard/WireGuard/UI/macOS/View
parentmacOS: On adding the first tunnel, select it (diff)
downloadwireguard-apple-f7b2f73015b51d939d38ed5284f40cd46c73237f.tar.xz
wireguard-apple-f7b2f73015b51d939d38ed5284f40cd46c73237f.zip
macOS: Rename *Cell to *Row
Signed-off-by: Roopesh Chander <roop@roopc.net>
Diffstat (limited to 'WireGuard/WireGuard/UI/macOS/View')
-rw-r--r--WireGuard/WireGuard/UI/macOS/View/KeyValueRow.swift (renamed from WireGuard/WireGuard/UI/macOS/View/KeyValueCell.swift)2
-rw-r--r--WireGuard/WireGuard/UI/macOS/View/TunnelListRow.swift (renamed from WireGuard/WireGuard/UI/macOS/View/TunnelListCell.swift)6
2 files changed, 4 insertions, 4 deletions
diff --git a/WireGuard/WireGuard/UI/macOS/View/KeyValueCell.swift b/WireGuard/WireGuard/UI/macOS/View/KeyValueRow.swift
index 47f9263..4e9fa7d 100644
--- a/WireGuard/WireGuard/UI/macOS/View/KeyValueCell.swift
+++ b/WireGuard/WireGuard/UI/macOS/View/KeyValueRow.swift
@@ -3,7 +3,7 @@
import Cocoa
-class KeyValueCell: NSView {
+class KeyValueRow: NSView {
let keyLabel: NSTextField = {
let keyLabel = NSTextField()
keyLabel.isEditable = false
diff --git a/WireGuard/WireGuard/UI/macOS/View/TunnelListCell.swift b/WireGuard/WireGuard/UI/macOS/View/TunnelListRow.swift
index 11bf73c..1a2f6a8 100644
--- a/WireGuard/WireGuard/UI/macOS/View/TunnelListCell.swift
+++ b/WireGuard/WireGuard/UI/macOS/View/TunnelListRow.swift
@@ -3,7 +3,7 @@
import Cocoa
-class TunnelListCell: NSView {
+class TunnelListRow: NSView {
var tunnel: TunnelContainer? {
didSet(value) {
// Bind to the tunnel's name
@@ -12,9 +12,9 @@ class TunnelListCell: NSView {
self?.nameLabel.stringValue = tunnel.name
}
// Bind to the tunnel's status
- statusImageView.image = TunnelListCell.image(for: tunnel?.status)
+ statusImageView.image = TunnelListRow.image(for: tunnel?.status)
statusObservationToken = tunnel?.observe(\TunnelContainer.status) { [weak self] tunnel, _ in
- self?.statusImageView.image = TunnelListCell.image(for: tunnel.status)
+ self?.statusImageView.image = TunnelListRow.image(for: tunnel.status)
}
}
}