]> git.ipfire.org Git - thirdparty/wireguard-apple.git/commitdiff
macOS: Tunnel detail: Rename action handling methods
authorRoopesh Chander <roop@roopc.net>
Wed, 16 Jan 2019 19:11:32 +0000 (00:41 +0530)
committerRoopesh Chander <roop@roopc.net>
Wed, 16 Jan 2019 19:11:32 +0000 (00:41 +0530)
Signed-off-by: Roopesh Chander <roop@roopc.net>
WireGuard/WireGuard/UI/macOS/ViewController/TunnelDetailTableViewController.swift

index 5f6c891bb0849e94a52d32bcb40d02bc681b7492..2c7f25adb8ddaa17e044528ad349c0a44d6c8710 100644 (file)
@@ -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)