Don't touch refresh if can communicate w/ original

This commit is contained in:
Davide De Rosa 2018-10-27 12:18:47 +02:00
parent 9e933d68c5
commit 013eaaabd4
1 changed files with 2 additions and 2 deletions

View File

@ -128,9 +128,9 @@ class ConfigurationViewController: UIViewController, TableModelHost {
log.error("Could not parse original configuration: \(e)")
return
}
configuration = parsedFile.configuration.sessionConfiguration.builder()
itemRefresh.isEnabled = !configuration.canCommunicate(with: initialConfiguration)
initialConfiguration = parsedFile.configuration.sessionConfiguration
configuration = initialConfiguration.builder()
itemRefresh.isEnabled = true // allow for manual reconnection
tableView.reloadData()
delegate?.configuration(didUpdate: initialConfiguration)