diff options
author | Roopesh Chander <roop@roopc.net> | 2018-11-03 15:51:21 +0530 |
---|---|---|
committer | Roopesh Chander <roop@roopc.net> | 2018-11-03 15:51:29 +0530 |
commit | 93128217786b6318dc14dd8a9397ffffcddeacd4 (patch) | |
tree | 5685f42e2a464d5a148556ec17ae3255a1806793 /WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift | |
parent | Ensure that all tunnel names are trimmed of whitespaces (diff) | |
download | wireguard-apple-93128217786b6318dc14dd8a9397ffffcddeacd4.tar.xz wireguard-apple-93128217786b6318dc14dd8a9397ffffcddeacd4.zip |
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 <roop@roopc.net>
Diffstat (limited to '')
-rw-r--r-- | WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift | 16 |
1 files changed, 0 insertions, 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 { |