Fix a bug in editing password

The synced attribute of password entity is not set as false after editing a password content.
This commit is contained in:
Bob Sun 2017-10-10 00:35:50 -07:00
parent b5697922ce
commit c7ab350ad8

View file

@ -674,6 +674,7 @@ public class PasswordStore {
try gitAdd(path: passwordEntity.getURL()!.path)
let _ = try gitCommit(message: "Edit password for \(passwordEntity.getURL()!.deletingPathExtension().path.removingPercentEncoding!) to store using Pass for iOS.")
newPasswordEntity = passwordEntity
newPasswordEntity?.synced = false
}
if password.changed&PasswordChange.path.rawValue != 0 {