diff options
author | Roopesh Chander <roop@roopc.net> | 2019-02-25 16:22:52 +0530 |
---|---|---|
committer | Roopesh Chander <roop@roopc.net> | 2019-02-25 18:43:20 +0530 |
commit | a389bd93cb6dd068c06ada10905d8fcf3ac65a84 (patch) | |
tree | 77050c44f2e4c319083bcd162cd3d64e4f9bf22e /WireGuard/WireGuard/UI/iOS/ViewController | |
parent | Importing: Use case-insensitive comparison for zip extension (diff) | |
download | wireguard-apple-a389bd93cb6dd068c06ada10905d8fcf3ac65a84.tar.xz wireguard-apple-a389bd93cb6dd068c06ada10905d8fcf3ac65a84.zip |
Importing: macOS: Support importing of multiple files at a time
Signed-off-by: Roopesh Chander <roop@roopc.net>
Diffstat (limited to 'WireGuard/WireGuard/UI/iOS/ViewController')
-rw-r--r-- | WireGuard/WireGuard/UI/iOS/ViewController/TunnelsListTableViewController.swift | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/WireGuard/WireGuard/UI/iOS/ViewController/TunnelsListTableViewController.swift b/WireGuard/WireGuard/UI/iOS/ViewController/TunnelsListTableViewController.swift index ccef4cd..e8e0a52 100644 --- a/WireGuard/WireGuard/UI/iOS/ViewController/TunnelsListTableViewController.swift +++ b/WireGuard/WireGuard/UI/iOS/ViewController/TunnelsListTableViewController.swift @@ -164,9 +164,7 @@ class TunnelsListTableViewController: UIViewController { extension TunnelsListTableViewController: UIDocumentPickerDelegate { func documentPicker(_ controller: UIDocumentPickerViewController, didPickDocumentsAt urls: [URL]) { guard let tunnelsManager = tunnelsManager else { return } - urls.forEach { url in - TunnelImporter.importFromFile(url: url, into: tunnelsManager, sourceVC: self, errorPresenterType: ErrorPresenter.self) - } + TunnelImporter.importFromFile(urls: urls, into: tunnelsManager, sourceVC: self, errorPresenterType: ErrorPresenter.self) } } |