fix bugs
This commit is contained in:
parent
a2fb5b4a2c
commit
b2c5c2475b
1 changed files with 9 additions and 7 deletions
|
|
@ -198,15 +198,17 @@ class PasswordsViewController: UIViewController, UITableViewDataSource, UITableV
|
||||||
var decryptedPassword: Password?
|
var decryptedPassword: Password?
|
||||||
do {
|
do {
|
||||||
decryptedPassword = try password.decrypt()!
|
decryptedPassword = try password.decrypt()!
|
||||||
|
DispatchQueue.main.async {
|
||||||
|
UIPasteboard.general.string = decryptedPassword?.password
|
||||||
|
SVProgressHUD.showSuccess(withStatus: "Password Copied")
|
||||||
|
SVProgressHUD.dismiss(withDelay: 0.6)
|
||||||
|
}
|
||||||
} catch {
|
} catch {
|
||||||
print(error)
|
print(error)
|
||||||
SVProgressHUD.showError(withStatus: error.localizedDescription)
|
DispatchQueue.main.async {
|
||||||
SVProgressHUD.dismiss(withDelay: 1)
|
SVProgressHUD.showError(withStatus: error.localizedDescription)
|
||||||
}
|
SVProgressHUD.dismiss(withDelay: 1)
|
||||||
DispatchQueue.main.async {
|
}
|
||||||
UIPasteboard.general.string = decryptedPassword?.password
|
|
||||||
SVProgressHUD.showSuccess(withStatus: "Password Copied")
|
|
||||||
SVProgressHUD.dismiss(withDelay: 0.6)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue