From 93128217786b6318dc14dd8a9397ffffcddeacd4 Mon Sep 17 00:00:00 2001 From: Roopesh Chander Date: Sat, 3 Nov 2018 15:51:21 +0530 Subject: [PATCH] Tunnel list: Don't show the detail view after creating a config from scratch So it's consistent with the other two "Add a configuration" menu items Signed-off-by: Roopesh Chander --- .../UI/iOS/TunnelsListTableViewController.swift | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift b/WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift index df509a6..7974549 100644 --- a/WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift +++ b/WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift @@ -147,7 +147,6 @@ class TunnelsListTableViewController: UIViewController { func presentViewControllerForTunnelCreation(tunnelsManager: TunnelsManager, tunnelConfiguration: TunnelConfiguration?) { let editVC = TunnelEditTableViewController(tunnelsManager: tunnelsManager, tunnelConfiguration: tunnelConfiguration) - editVC.delegate = self let editNC = UINavigationController(rootViewController: editVC) editNC.modalPresentationStyle = .formSheet self.present(editNC, animated: true) @@ -245,21 +244,6 @@ class TunnelsListTableViewController: UIViewController { } } -// MARK: TunnelEditTableViewControllerDelegate - -extension TunnelsListTableViewController: TunnelEditTableViewControllerDelegate { - func tunnelSaved(tunnel: TunnelContainer) { - guard let tunnelsManager = tunnelsManager else { return } - let tunnelDetailVC = TunnelDetailTableViewController(tunnelsManager: tunnelsManager, - tunnel: tunnel) - let tunnelDetailNC = UINavigationController(rootViewController: tunnelDetailVC) - showDetailViewController(tunnelDetailNC, sender: self) // Shall get propagated up to the split-vc - } - func tunnelEditingCancelled() { - // Nothing to do here - } -} - // MARK: UIDocumentPickerDelegate extension TunnelsListTableViewController: UIDocumentPickerDelegate {