Fix some UI issues introduced by refactoring
This commit is contained in:
parent
efdc45ea89
commit
cea1332b0d
6 changed files with 9 additions and 5 deletions
|
|
@ -198,15 +198,15 @@ public class PasswordStore {
|
|||
} catch {
|
||||
credential.delete()
|
||||
SharedDefaults[.lastSyncedTime] = nil
|
||||
self.deleteCoreData(entityName: "PasswordEntity")
|
||||
DispatchQueue.main.async {
|
||||
self.deleteCoreData(entityName: "PasswordEntity")
|
||||
NotificationCenter.default.post(name: .passwordStoreUpdated, object: nil)
|
||||
}
|
||||
throw(error)
|
||||
}
|
||||
SharedDefaults[.lastSyncedTime] = Date()
|
||||
self.updatePasswordEntityCoreData()
|
||||
DispatchQueue.main.async {
|
||||
self.updatePasswordEntityCoreData()
|
||||
NotificationCenter.default.post(name: .passwordStoreUpdated, object: nil)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue