macOS: Tunnel detail: Rename action handling methods
Signed-off-by: Roopesh Chander <roop@roopc.net>
This commit is contained in:
@@ -107,7 +107,7 @@ class TunnelDetailTableViewController: NSViewController {
|
|||||||
statusCheckbox.action = #selector(statusCheckboxToggled(sender:))
|
statusCheckbox.action = #selector(statusCheckboxToggled(sender:))
|
||||||
|
|
||||||
editButton.target = self
|
editButton.target = self
|
||||||
editButton.action = #selector(editButtonClicked)
|
editButton.action = #selector(handleEditTunnelAction)
|
||||||
|
|
||||||
let clipView = NSClipView()
|
let clipView = NSClipView()
|
||||||
clipView.documentView = tableView
|
clipView.documentView = tableView
|
||||||
@@ -195,7 +195,7 @@ class TunnelDetailTableViewController: NSViewController {
|
|||||||
statusCheckbox.isEnabled = shouldBeEnabled
|
statusCheckbox.isEnabled = shouldBeEnabled
|
||||||
}
|
}
|
||||||
|
|
||||||
@objc func editButtonClicked() {
|
@objc func handleEditTunnelAction() {
|
||||||
let tunnelEditVC = TunnelEditViewController(tunnelsManager: tunnelsManager, tunnel: tunnel)
|
let tunnelEditVC = TunnelEditViewController(tunnelsManager: tunnelsManager, tunnel: tunnel)
|
||||||
tunnelEditVC.delegate = self
|
tunnelEditVC.delegate = self
|
||||||
presentAsSheet(tunnelEditVC)
|
presentAsSheet(tunnelEditVC)
|
||||||
|
|||||||
Reference in New Issue
Block a user