diff options
author | Roopesh Chander <roop@roopc.net> | 2018-12-07 19:05:04 +0530 |
---|---|---|
committer | Roopesh Chander <roop@roopc.net> | 2018-12-07 19:05:08 +0530 |
commit | 105eca7adcaa41f54228da53e237316e61f08c98 (patch) | |
tree | 84747d6faa72aced77dafb03aab79b641f8c2d64 /WireGuard/WireGuard/UI/iOS/TunnelDetailTableViewController.swift | |
parent | Main VC: No need to refresh statuses if the tunnelsManager isn't initialized yet (diff) | |
download | wireguard-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.swift | 3 |
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() { |