Fix #213: app now clears clipboard in 45s

This commit is contained in:
Yishi Lin 2018-09-25 00:51:18 +08:00
parent a849b667dc
commit 3cc2182bc0
2 changed files with 11 additions and 22 deletions

View file

@ -406,7 +406,7 @@ class PasswordsViewController: UIViewController, UITableViewDataSource, UITableV
decryptedPassword = try self.passwordStore.decrypt(passwordEntity: passwordEntity, requestPGPKeyPassphrase: self.requestPGPKeyPassphrase)
DispatchQueue.main.async {
SecurePasteboard.shared.copy(textToCopy: decryptedPassword?.password)
SVProgressHUD.showSuccess(withStatus: "Password copied, and will be cleared in 45 seconds.")
SVProgressHUD.showSuccess(withStatus: "Password copied. We will clear the pasteboard in 45 seconds.")
SVProgressHUD.dismiss(withDelay: 0.6)
}
} catch {