Fix 262: save context after editing

This commit is contained in:
Yishi Lin 2019-05-15 01:12:10 +08:00
parent ebb3566616
commit 451e2f6fbb

View file

@ -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
}