From: Roopesh Chander Date: Wed, 16 Jan 2019 19:58:57 +0000 (+0530) Subject: macOS: Tunnel edit: Rename action handling methods X-Git-Tag: 0.0.20190207-1~103 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bf9cb092a983d66b9ec6dda8788fca92be66b6d5;p=thirdparty%2Fwireguard-apple.git macOS: Tunnel edit: Rename action handling methods Signed-off-by: Roopesh Chander --- diff --git a/WireGuard/WireGuard/UI/macOS/ViewController/TunnelEditViewController.swift b/WireGuard/WireGuard/UI/macOS/ViewController/TunnelEditViewController.swift index a23088c..1ca6dc3 100644 --- a/WireGuard/WireGuard/UI/macOS/ViewController/TunnelEditViewController.swift +++ b/WireGuard/WireGuard/UI/macOS/ViewController/TunnelEditViewController.swift @@ -145,10 +145,10 @@ class TunnelEditViewController: NSViewController { scrollView.documentView = textView saveButton.target = self - saveButton.action = #selector(saveButtonClicked) + saveButton.action = #selector(handleSaveAction) discardButton.target = self - discardButton.action = #selector(discardButtonClicked) + discardButton.action = #selector(handleDiscardAction) let margin: CGFloat = 20 let internalSpacing: CGFloat = 10 @@ -178,7 +178,7 @@ class TunnelEditViewController: NSViewController { self.view = containerView } - @objc func saveButtonClicked() { + @objc func handleSaveAction() { let name = nameRow.value guard !name.isEmpty else { ErrorPresenter.showErrorAlert(title: tr("macAlertNameIsEmpty"), message: "", from: self) @@ -237,7 +237,7 @@ class TunnelEditViewController: NSViewController { } } - @objc func discardButtonClicked() { + @objc func handleDiscardAction() { delegate?.tunnelEditingCancelled() dismiss(self) }