Fix "Update list" locking up providers wizard

This commit is contained in:
Davide De Rosa 2021-02-04 18:44:36 +01:00
parent e8c781b24e
commit 452589a747
2 changed files with 4 additions and 10 deletions

View File

@ -21,6 +21,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Redundant keychain items. - Redundant keychain items.
- Keyboard not dismissed in "Network settings". - Keyboard not dismissed in "Network settings".
- "Reset configuration" not working with encrypted configuration files. - "Reset configuration" not working with encrypted configuration files.
- "Update list" locks up in providers.
## 1.14.0 (2021-01-07) ## 1.14.0 (2021-01-07)

View File

@ -145,21 +145,14 @@ class WizardProviderViewController: UITableViewController, StrongTableHost {
private func updateProvidersList() { private func updateProvidersList() {
let hud = HUD(view: view) let hud = HUD(view: view)
InfrastructureFactory.shared.updateIndex { [weak self] in InfrastructureFactory.shared.updateIndex { [weak self] in
if let error = $0 {
hud.hide() hud.hide()
if let error = $0 {
log.error("Unable to update providers list: \(error)") log.error("Unable to update providers list: \(error)")
return return
} }
// ProductManager.shared.listProducts { (products, error) in
// hud.hide()
// if let error = error {
// log.error("Unable to list products: \(error)")
// return
// }
self?.reloadModel() self?.reloadModel()
self?.tableView.reloadData() self?.tableView.reloadData()
// }
} }
} }