fix a bug in authentication method

This commit is contained in:
Bob Sun 2017-02-20 22:24:10 +08:00
parent fd8b9e4aac
commit cdf6d7ee71
No known key found for this signature in database
GPG key ID: 1F86BA2052FED3B4

View file

@ -83,8 +83,9 @@ class GitServerSettingTableViewController: UITableViewController {
authenticationMethod = "Password" authenticationMethod = "Password"
authSSHKeyCell.accessoryType = .none authSSHKeyCell.accessoryType = .none
authPasswordCell.accessoryType = .checkmark authPasswordCell.accessoryType = .checkmark
} else {
authenticationMethod = "SSH Key"
} }
authenticationMethod = "SSH Key"
} }
tableView.deselectRow(at: indexPath, animated: true) tableView.deselectRow(at: indexPath, animated: true)
} }