macOS: Tunnel detail: Rename action handling methods

This commit is contained in:
Roopesh Chander 2019-01-17 00:41:32 +05:30
parent e116365ea4
commit 8530ce1545
1 changed files with 2 additions and 2 deletions

View 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)