Some cosmetic changes

This commit is contained in:
Danny Moesch 2020-02-09 14:06:08 +01:00 committed by Mingshen Sun
parent e447b1d9d3
commit 5f6723246b
7 changed files with 10 additions and 20 deletions

View file

@ -60,11 +60,7 @@ class GitSSHKeyArmorSettingTableViewController: AutoCellHeightUITableViewControl
}
@IBAction func doneButtonTapped(_ sender: Any) {
do {
try passwordStore.initGitSSHKey(with: armorPrivateKeyTextView.text)
} catch {
Utils.alert(title: "CannotSave".localize(), message: "CannotSaveSshKey".localize(), controller: self, completion: nil)
}
AppKeychain.shared.add(string: armorPrivateKeyTextView.text, for: SshKey.PRIVATE.getKeychainKey())
Defaults.gitSSHKeySource = .armor
Defaults.gitAuthenticationMethod = .key
self.navigationController!.popViewController(animated: true)