Update password in the destination controller when save edit (#688)
This commit is contained in:
parent
0f482709ae
commit
dd4dd174d4
2 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue