only prepare saveEditPasswordSegue
This commit is contained in:
parent
286f90b92e
commit
ae93727c6b
1 changed files with 10 additions and 8 deletions
|
|
@ -39,6 +39,7 @@ class EditPasswordTableViewController: PasswordEditorTableViewController {
|
|||
}
|
||||
|
||||
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
|
||||
if segue.identifier == "saveEditPasswordSegue" {
|
||||
let cells = tableView.visibleCells
|
||||
var cellContents = [String: String]()
|
||||
for cell in cells {
|
||||
|
|
@ -49,5 +50,6 @@ class EditPasswordTableViewController: PasswordEditorTableViewController {
|
|||
}
|
||||
password!.updatePassword(name: cellContents["name"]!, plainText: "\(cellContents["password"]!)\n\(cellContents["additions"]!)")
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue