Fix 262: save context after editing
This commit is contained in:
parent
ebb3566616
commit
451e2f6fbb
1 changed files with 2 additions and 0 deletions
|
|
@ -640,6 +640,8 @@ public class PasswordStore {
|
|||
try deletePasswordEntities(passwordEntity: passwordEntity)
|
||||
let _ = try gitCommit(message: "RenamePassword.".localize(deletedFileURL.deletingPathExtension().path.removingPercentEncoding!, password.url.deletingPathExtension().path.removingPercentEncoding!))
|
||||
}
|
||||
|
||||
self.saveUpdated(passwordEntity: newPasswordEntity!)
|
||||
NotificationCenter.default.post(name: .passwordStoreUpdated, object: nil)
|
||||
return newPasswordEntity
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue