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
|
|
@ -82,8 +82,6 @@ extension PGPKeyFileSettingTableViewController: PGPKeyImporter {
|
|||
guard let publicKey = publicKey, let privateKey = privateKey else {
|
||||
return
|
||||
}
|
||||
Defaults.pgpKeySource = Self.keySource
|
||||
|
||||
try KeyFileManager.PublicPgp.importKey(from: publicKey)
|
||||
try KeyFileManager.PrivatePgp.importKey(from: privateKey)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue