Change UIDocumentPickerViewController in to .open
This commit is contained in:
parent
5a72bc9d9a
commit
49a371d495
1 changed files with 1 additions and 1 deletions
|
|
@ -21,7 +21,7 @@ class SSHKeyFileImportTableViewController: AutoCellHeightUITableViewController {
|
||||||
|
|
||||||
override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
|
override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
|
||||||
let cell = tableView.cellForRow(at: indexPath)
|
let cell = tableView.cellForRow(at: indexPath)
|
||||||
let picker = UIDocumentPickerViewController(documentTypes: ["public.data"], in: .import)
|
let picker = UIDocumentPickerViewController(documentTypes: ["public.data"], in: .open)
|
||||||
cell?.isSelected = false
|
cell?.isSelected = false
|
||||||
guard cell == sshPrivateKeyFile else {
|
guard cell == sshPrivateKeyFile else {
|
||||||
return
|
return
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue