summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--ios/MullvadVPN/SettingsViewController.swift10
1 files changed, 7 insertions, 3 deletions
diff --git a/ios/MullvadVPN/SettingsViewController.swift b/ios/MullvadVPN/SettingsViewController.swift
index 4e625eec17..1c9b618ad2 100644
--- a/ios/MullvadVPN/SettingsViewController.swift
+++ b/ios/MullvadVPN/SettingsViewController.swift
@@ -11,6 +11,7 @@ import UIKit
enum SettingsNavigationRoute {
case account
+ case wireguardKeys
}
class SettingsViewController: UITableViewController {
@@ -56,6 +57,11 @@ class SettingsViewController: UITableViewController {
self.performSegue(
withIdentifier: SegueIdentifier.Settings.showAccount.rawValue,
sender: nil)
+
+ case .wireguardKeys:
+ let controller = WireguardKeysViewController()
+
+ navigationController?.pushViewController(controller, animated: true)
}
}
@@ -78,9 +84,7 @@ class SettingsViewController: UITableViewController {
}
wireguardKeyRow.actionBlock = { [weak self] (indexPath) in
- let controller = WireguardKeysViewController()
-
- self?.navigationController?.pushViewController(controller, animated: true)
+ self?.navigate(to: .wireguardKeys)
}
self.accountRow = accountRow