make notification consistent

This commit is contained in:
Bob Sun 2017-02-20 22:02:49 +08:00
parent 548eecc27c
commit fd8b9e4aac
No known key found for this signature in database
GPG key ID: 1F86BA2052FED3B4

View file

@ -41,7 +41,7 @@ class SettingsTableViewController: UITableViewController {
pgpPrivateKeyLocalPath: Globals.pgpPrivateKeyPath)
DispatchQueue.main.async {
self.pgpKeyTableViewCell.detailTextLabel?.text = Defaults[.pgpKeyID]
SVProgressHUD.showSuccess(withStatus: "Success.")
SVProgressHUD.showSuccess(withStatus: "Success")
SVProgressHUD.dismiss(withDelay: 1)
Utils.alert(title: "Rememver to Remove the Key", message: "Remember to remove the key from the server.", controller: self, completion: nil)
}
@ -74,7 +74,7 @@ class SettingsTableViewController: UITableViewController {
pgpPrivateKeyLocalPath: Globals.pgpPrivateKeyPath)
DispatchQueue.main.async {
self.pgpKeyTableViewCell.detailTextLabel?.text = Defaults[.pgpKeyID]
SVProgressHUD.showSuccess(withStatus: "Success.")
SVProgressHUD.showSuccess(withStatus: "Success")
SVProgressHUD.dismiss(withDelay: 1)
}
} catch {