add PGP key url check

This commit is contained in:
Bob Sun 2017-02-06 13:25:27 +08:00
parent 27c12abdc4
commit 6e5f6d9360
No known key found for this signature in database
GPG key ID: 1F86BA2052FED3B4
3 changed files with 16 additions and 3 deletions

View file

@ -75,9 +75,9 @@ class SettingsTableViewController: UITableViewController {
}
}
} else if let controller = segue.source as? PGPKeySettingTableViewController {
if Defaults[.pgpKeyURL] != URL(string: controller.pgpKeyURLTextField.text!) ||
Defaults[.pgpKeyPassphrase] != controller.pgpKeyPassphraseTextField.text!
{
Defaults[.pgpKeyPassphrase] != controller.pgpKeyPassphraseTextField.text! {
Defaults[.pgpKeyURL] = URL(string: controller.pgpKeyURLTextField.text!)
Defaults[.pgpKeyPassphrase] = controller.pgpKeyPassphraseTextField.text!