Deselect imported host row regardless

This commit is contained in:
Davide De Rosa 2019-10-22 23:04:39 +02:00
parent 68da29474b
commit d550461c60
1 changed files with 2 additions and 4 deletions

View File

@ -84,12 +84,10 @@ class ImportedHostsViewController: UITableViewController {
}
private func tryParseURL(_ url: URL, cell: UITableViewCell) -> Bool {
deselectSelectedRow()
importer = HostImporter(withConfigurationURL: url, parentViewController: self)
importer?.importHost(withPassphrase: nil, removeOnError: false, removeOnCancel: false) {
// FIXME: HostImporter, also deselect on error/cancel, or just deselect immediately
self.deselectSelectedRow()
self.parsingResult = $0
self.perform(segue: StoryboardSegue.Organizer.importHostSegueIdentifier)
}