aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard/WireGuard/UI/iOS/TunnelDetailTableViewController.swift
diff options
context:
space:
mode:
authorRoopesh Chander <roop@roopc.net>2018-12-07 19:05:04 +0530
committerRoopesh Chander <roop@roopc.net>2018-12-07 19:05:08 +0530
commit105eca7adcaa41f54228da53e237316e61f08c98 (patch)
tree84747d6faa72aced77dafb03aab79b641f8c2d64 /WireGuard/WireGuard/UI/iOS/TunnelDetailTableViewController.swift
parentMain VC: No need to refresh statuses if the tunnelsManager isn't initialized yet (diff)
downloadwireguard-apple-105eca7adcaa41f54228da53e237316e61f08c98.tar.xz
wireguard-apple-105eca7adcaa41f54228da53e237316e61f08c98.zip
State restoration: Restore tunnel detail view
Signed-off-by: Roopesh Chander <roop@roopc.net>
Diffstat (limited to 'WireGuard/WireGuard/UI/iOS/TunnelDetailTableViewController.swift')
-rw-r--r--WireGuard/WireGuard/UI/iOS/TunnelDetailTableViewController.swift3
1 files changed, 3 insertions, 0 deletions
diff --git a/WireGuard/WireGuard/UI/iOS/TunnelDetailTableViewController.swift b/WireGuard/WireGuard/UI/iOS/TunnelDetailTableViewController.swift
index 99d751b..b59c7b5 100644
--- a/WireGuard/WireGuard/UI/iOS/TunnelDetailTableViewController.swift
+++ b/WireGuard/WireGuard/UI/iOS/TunnelDetailTableViewController.swift
@@ -43,6 +43,9 @@ class TunnelDetailTableViewController: UITableViewController {
self.tableView.register(TunnelDetailTableViewKeyValueCell.self, forCellReuseIdentifier: TunnelDetailTableViewKeyValueCell.id)
self.tableView.register(TunnelDetailTableViewButtonCell.self, forCellReuseIdentifier: TunnelDetailTableViewButtonCell.id)
self.tableView.register(TunnelDetailTableViewActivateOnDemandCell.self, forCellReuseIdentifier: TunnelDetailTableViewActivateOnDemandCell.id)
+
+ // State restoration
+ self.restorationIdentifier = "TunnelDetailVC:\(tunnel.name)"
}
@objc func editTapped() {