Add ability to import SSH keys from the Files app

This commit is contained in:
Danny Moesch
2020-02-15 18:14:06 +01:00
committed by Mingshen Sun
parent 94a5f8c501
commit d33e63cd83
8 changed files with 176 additions and 0 deletions

View File

@@ -247,6 +247,9 @@ class GitRepositorySettingsTableViewController: UITableViewController {
optionMenu.addAction(UIAlertAction(title: SSHKeyArmorImportTableViewController.menuLabel, style: .default) { _ in
self.performSegue(withIdentifier: "setGitSSHKeyByArmorSegue", sender: self)
})
optionMenu.addAction(UIAlertAction(title: SSHKeyFileImportTableViewController.menuLabel, style: .default) { _ in
self.performSegue(withIdentifier: "setGitSSHKeyByFileSegue", sender: self)
})
if isReadyToUse() {
optionMenu.addAction(UIAlertAction(title: "\(Self.menuLabel) (\("Import".localize()))", style: .default) { _ in