mirror of
https://github.com/mssun/passforios.git
synced 2025-12-14 20:35:41 +01:00
Update password in the destination controller when save edit (#688)
This commit is contained in:
@@ -28,6 +28,9 @@ class EditPasswordTableViewController: PasswordEditorTableViewController {
|
||||
if password!.plainText != editedPlainText || password!.path != path {
|
||||
password!.updatePassword(name: name, path: path, plainText: editedPlainText)
|
||||
}
|
||||
if let controller = segue.destination as? PasswordDetailTableViewController {
|
||||
controller.password = password
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class PasswordDetailTableViewController: UITableViewController, UIGestureRecogni
|
||||
}
|
||||
}
|
||||
|
||||
private var password: Password?
|
||||
var password: Password?
|
||||
private var passwordImage: UIImage?
|
||||
private var oneTimePasswordIndexPath: IndexPath?
|
||||
private var shouldPopCurrentView = false
|
||||
|
||||
Reference in New Issue
Block a user