From: Roopesh Chander Date: Wed, 16 Jan 2019 19:11:32 +0000 (+0530) Subject: macOS: Tunnel detail: Rename action handling methods X-Git-Tag: 0.0.20190207-1~104 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dbd5108475aa8aa5d923f4dbc83cf274e72abd61;p=thirdparty%2Fwireguard-apple.git macOS: Tunnel detail: Rename action handling methods Signed-off-by: Roopesh Chander --- diff --git a/WireGuard/WireGuard/UI/macOS/ViewController/TunnelDetailTableViewController.swift b/WireGuard/WireGuard/UI/macOS/ViewController/TunnelDetailTableViewController.swift index 5f6c891..2c7f25a 100644 --- a/WireGuard/WireGuard/UI/macOS/ViewController/TunnelDetailTableViewController.swift +++ b/WireGuard/WireGuard/UI/macOS/ViewController/TunnelDetailTableViewController.swift @@ -107,7 +107,7 @@ class TunnelDetailTableViewController: NSViewController { statusCheckbox.action = #selector(statusCheckboxToggled(sender:)) editButton.target = self - editButton.action = #selector(editButtonClicked) + editButton.action = #selector(handleEditTunnelAction) let clipView = NSClipView() clipView.documentView = tableView @@ -195,7 +195,7 @@ class TunnelDetailTableViewController: NSViewController { statusCheckbox.isEnabled = shouldBeEnabled } - @objc func editButtonClicked() { + @objc func handleEditTunnelAction() { let tunnelEditVC = TunnelEditViewController(tunnelsManager: tunnelsManager, tunnel: tunnel) tunnelEditVC.delegate = self presentAsSheet(tunnelEditVC)