Add ability to import PGP keys from the Files app

This commit is contained in:
Danny Moesch 2020-02-09 14:13:51 +01:00 committed by Mingshen Sun
parent 5f6723246b
commit e0c9ceb4fd
9 changed files with 285 additions and 12 deletions

View file

@ -138,6 +138,9 @@ class SettingsTableViewController: UITableViewController, UITabBarControllerDele
optionMenu.addAction(UIAlertAction(title: PGPKeyArmorSettingTableViewController.menuLabel, style: .default) { _ in
self.performSegue(withIdentifier: "setPGPKeyByASCIISegue", sender: self)
})
optionMenu.addAction(UIAlertAction(title: PGPKeyFileSettingTableViewController.menuLabel, style: .default) { _ in
self.performSegue(withIdentifier: "setPGPKeyByFileSegue", sender: self)
})
if isReadyToUse() {
optionMenu.addAction(UIAlertAction(title: "\(Self.menuLabel) (\("Import".localize()))", style: .default) { _ in