QR code: Save the scanned tunnel

This commit is contained in:
Roopesh Chander 2018-10-28 23:32:15 +05:30
parent fabfd17d44
commit 974b2568d2
1 changed files with 6 additions and 1 deletions

View File

@ -147,7 +147,12 @@ extension TunnelsListTableViewController: UIDocumentPickerDelegate {
extension TunnelsListTableViewController: QRScanViewControllerDelegate { extension TunnelsListTableViewController: QRScanViewControllerDelegate {
func scannedQRCode(tunnelConfiguration: TunnelConfiguration, qrScanViewController: QRScanViewController) { func scannedQRCode(tunnelConfiguration: TunnelConfiguration, qrScanViewController: QRScanViewController) {
print("Scanned QR code") // TODO tunnelsManager?.add(tunnelConfiguration: tunnelConfiguration) { [weak self] (tunnel, error) in
if let error = error {
print("Could not add tunnel: \(error)")
self?.showErrorAlert(title: "Could not save scanned config", message: "Internal error")
}
}
} }
} }