unowned self in closure
This commit is contained in:
parent
8755575779
commit
57a6a3f881
1 changed files with 1 additions and 1 deletions
|
|
@ -29,7 +29,7 @@ class PasswordsViewController: UIViewController, UITableViewDataSource, UITableV
|
||||||
@IBAction func refreshPasswords(_ sender: UIBarButtonItem) {
|
@IBAction func refreshPasswords(_ sender: UIBarButtonItem) {
|
||||||
SVProgressHUD.setDefaultMaskType(.black)
|
SVProgressHUD.setDefaultMaskType(.black)
|
||||||
SVProgressHUD.show(withStatus: "Pull Remote Repository")
|
SVProgressHUD.show(withStatus: "Pull Remote Repository")
|
||||||
DispatchQueue.global(qos: .userInitiated).async {
|
DispatchQueue.global(qos: .userInitiated).async { [unowned self] in
|
||||||
if PasswordStore.shared.pullRepository(transferProgressBlock: {(git_transfer_progress, stop) in
|
if PasswordStore.shared.pullRepository(transferProgressBlock: {(git_transfer_progress, stop) in
|
||||||
DispatchQueue.main.async {
|
DispatchQueue.main.async {
|
||||||
SVProgressHUD.showProgress(Float(git_transfer_progress.pointee.received_objects)/Float(git_transfer_progress.pointee.total_objects), status: "Pull Remote Repository")
|
SVProgressHUD.showProgress(Float(git_transfer_progress.pointee.received_objects)/Float(git_transfer_progress.pointee.total_objects), status: "Pull Remote Repository")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue