Fix "Update list" locking up providers wizard
This commit is contained in:
parent
e8c781b24e
commit
452589a747
|
@ -21,6 +21,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
- Redundant keychain items.
|
||||
- Keyboard not dismissed in "Network settings".
|
||||
- "Reset configuration" not working with encrypted configuration files.
|
||||
- "Update list" locks up in providers.
|
||||
|
||||
## 1.14.0 (2021-01-07)
|
||||
|
||||
|
|
|
@ -145,21 +145,14 @@ class WizardProviderViewController: UITableViewController, StrongTableHost {
|
|||
private func updateProvidersList() {
|
||||
let hud = HUD(view: view)
|
||||
InfrastructureFactory.shared.updateIndex { [weak self] in
|
||||
hud.hide()
|
||||
if let error = $0 {
|
||||
hud.hide()
|
||||
log.error("Unable to update providers list: \(error)")
|
||||
return
|
||||
}
|
||||
|
||||
// ProductManager.shared.listProducts { (products, error) in
|
||||
// hud.hide()
|
||||
// if let error = error {
|
||||
// log.error("Unable to list products: \(error)")
|
||||
// return
|
||||
// }
|
||||
self?.reloadModel()
|
||||
self?.tableView.reloadData()
|
||||
// }
|
||||
self?.reloadModel()
|
||||
self?.tableView.reloadData()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue