diff options
Diffstat (limited to 'WireGuard/WireGuard/UI/iOS/ViewController/SSIDOptionEditTableViewController.swift')
-rw-r--r-- | WireGuard/WireGuard/UI/iOS/ViewController/SSIDOptionEditTableViewController.swift | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/WireGuard/WireGuard/UI/iOS/ViewController/SSIDOptionEditTableViewController.swift b/WireGuard/WireGuard/UI/iOS/ViewController/SSIDOptionEditTableViewController.swift index 1256f56..8740f06 100644 --- a/WireGuard/WireGuard/UI/iOS/ViewController/SSIDOptionEditTableViewController.swift +++ b/WireGuard/WireGuard/UI/iOS/ViewController/SSIDOptionEditTableViewController.swift @@ -266,6 +266,10 @@ extension SSIDOptionEditTableViewController { case .ssidOption: let previousOption = selectedOption selectedOption = ssidOptionFields[indexPath.row] + guard previousOption != selectedOption else { + tableView.deselectRow(at: indexPath, animated: true) + return + } loadSections() if previousOption == .anySSID { let indexSet = IndexSet(1 ... 2) |