move showProgress method to main thread
This commit is contained in:
parent
869f06e00f
commit
77945b11f8
1 changed files with 3 additions and 1 deletions
|
|
@ -113,7 +113,9 @@ class PasswordDetailTableViewController: UITableViewController, UIGestureRecogni
|
|||
SVProgressHUD.show(withStatus: "Saving")
|
||||
DispatchQueue.global(qos: .userInitiated).async {
|
||||
PasswordStore.shared.update(passwordEntity: self.passwordEntity!, password: self.password!, progressBlock: { progress in
|
||||
SVProgressHUD.showProgress(progress, status: "Encrypting")
|
||||
DispatchQueue.main.async {
|
||||
SVProgressHUD.showProgress(progress, status: "Encrypting")
|
||||
}
|
||||
})
|
||||
DispatchQueue.main.async {
|
||||
self.passwordEntity!.synced = false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue