mirror of
https://github.com/passepartoutvpn/passepartout-apple.git
synced 2025-01-18 22:49:10 +00:00
Use updateViewsIfNeeded() for consistency
This commit is contained in:
parent
29f34cd206
commit
1dd3ad18aa
@ -105,7 +105,7 @@ class ServiceViewController: UIViewController, TableModelHost {
|
||||
// XXX: convenient here vs AppDelegate for updating table
|
||||
vpn.prepare() {
|
||||
self.reloadModel()
|
||||
self.tableView.reloadData()
|
||||
self.updateViewsIfNeeded()
|
||||
}
|
||||
|
||||
updateViewsIfNeeded()
|
||||
@ -197,7 +197,7 @@ class ServiceViewController: UIViewController, TableModelHost {
|
||||
vpn.profile = uncheckedProfile
|
||||
vpn.disconnect { (error) in
|
||||
self.reloadModel()
|
||||
self.tableView.reloadData()
|
||||
self.updateViewsIfNeeded()
|
||||
}
|
||||
}
|
||||
|
||||
@ -243,12 +243,12 @@ class ServiceViewController: UIViewController, TableModelHost {
|
||||
return
|
||||
}
|
||||
self.reloadModel()
|
||||
self.tableView.reloadData()
|
||||
self.updateViewsIfNeeded()
|
||||
}
|
||||
} else {
|
||||
vpn.disconnect { (error) in
|
||||
self.reloadModel()
|
||||
self.tableView.reloadData()
|
||||
self.updateViewsIfNeeded()
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user