fix: General improvements on purchase restore

This commit is contained in:
Andrea Busi
2020-07-30 21:07:16 +02:00
parent e2fa2c0cde
commit 5e9c101990
2 changed files with 18 additions and 2 deletions
@@ -149,8 +149,12 @@ class PurchaseProVersionViewController: UIViewController {
let alert = UIAlertController(title: NSLocalizedString("purchase_pro_restore_alert_title", comment: ""),
message: NSLocalizedString("purchase_pro_restore_alert_message", comment: ""),
preferredStyle: .alert)
alert.addAction(UIAlertAction(title: "OK", style: .default, handler: nil))
alert.addAction(UIAlertAction(title: "OK", style: .default) { [weak self] _ in
self?.navigationController?.popViewController(animated: true)
})
present(alert, animated: true)
} else {
navigationController?.popViewController(animated: true)
}
}