diff options
author | Roopesh Chander <roop@roopc.net> | 2019-03-17 16:38:07 +0530 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-03-18 06:46:55 +0100 |
commit | 0f98312d150bfcbcfd90267462fdaf88d8f82517 (patch) | |
tree | a767875a717a3f4b4a34ae5b780693647e7a76fc /WireGuard/WireGuard/UI/TunnelViewModel.swift | |
parent | macOS: Nullify observationToken on prepareForReuse() (diff) | |
download | wireguard-apple-0f98312d150bfcbcfd90267462fdaf88d8f82517.tar.xz wireguard-apple-0f98312d150bfcbcfd90267462fdaf88d8f82517.zip |
macOS: Tunnel detail: Make the Activate button part of the list view
Signed-off-by: Roopesh Chander <roop@roopc.net>
Diffstat (limited to '')
-rw-r--r-- | WireGuard/WireGuard/UI/TunnelViewModel.swift | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/WireGuard/WireGuard/UI/TunnelViewModel.swift b/WireGuard/WireGuard/UI/TunnelViewModel.swift index 20620fc..e6b00a1 100644 --- a/WireGuard/WireGuard/UI/TunnelViewModel.swift +++ b/WireGuard/WireGuard/UI/TunnelViewModel.swift @@ -15,6 +15,7 @@ class TunnelViewModel { case mtu case dns case status + case toggleStatus var localizedUIString: String { switch self { @@ -27,6 +28,7 @@ class TunnelViewModel { case .mtu: return tr("tunnelInterfaceMTU") case .dns: return tr("tunnelInterfaceDNS") case .status: return tr("tunnelInterfaceStatus") + case .toggleStatus: return "" } } } |