Seperate PGPAgent from PasswordStore and add tests
This commit is contained in:
parent
0862c1388e
commit
6ae4a02a01
14 changed files with 526 additions and 179 deletions
|
|
@ -31,7 +31,7 @@ class AddPasswordTableViewController: PasswordEditorTableViewController {
|
|||
override func shouldPerformSegue(withIdentifier identifier: String, sender: Any?) -> Bool {
|
||||
if identifier == "saveAddPasswordSegue" {
|
||||
// check PGP key
|
||||
guard passwordStore.privateKey != nil else {
|
||||
guard passwordStore.pgpAgent?.imported ?? false else {
|
||||
let alertTitle = "CannotAddPassword".localize()
|
||||
let alertMessage = "PgpKeyNotSet.".localize()
|
||||
Utils.alert(title: alertTitle, message: alertMessage, controller: self, completion: nil)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue