Polish the logic

- Update the entity core data before notifying others "password store updated"
This commit is contained in:
Yishi Lin 2017-03-30 23:19:04 +08:00
parent b85358a0b8
commit 0760c07be2

View file

@ -304,8 +304,8 @@ class PasswordStore {
gitCredential = credential
Defaults[.lastSyncedTime] = Date()
DispatchQueue.main.async {
NotificationCenter.default.post(name: .passwordStoreUpdated, object: nil)
self.updatePasswordEntityCoreData()
NotificationCenter.default.post(name: .passwordStoreUpdated, object: nil)
}
}