Set PGP key source once for all key importers
This commit is contained in:
parent
e0c9ceb4fd
commit
43bba1fb50
4 changed files with 2 additions and 9 deletions
|
|
@ -37,10 +37,8 @@ extension PGPKeyUrlTableViewController: PGPKeyImporter {
|
|||
return validate(pgpKeyUrl: pgpPublicKeyURLTextField.text)
|
||||
&& validate(pgpKeyUrl: pgpPrivateKeyURLTextField.text)
|
||||
}
|
||||
|
||||
func importKeys() throws {
|
||||
Defaults.pgpKeySource = Self.keySource
|
||||
|
||||
func importKeys() throws {
|
||||
Defaults.pgpPrivateKeyURL = URL(string: pgpPrivateKeyURLTextField.text!.trimmed)
|
||||
Defaults.pgpPublicKeyURL = URL(string: pgpPublicKeyURLTextField.text!.trimmed)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue