fix a bug caused by UserDefaults extension
This commit is contained in:
parent
1e07cf2e46
commit
f06c2a2727
2 changed files with 3 additions and 4 deletions
|
|
@ -29,9 +29,8 @@ extension DefaultsKeys {
|
|||
static let passcodeKey = DefaultsKey<String?>("passcodeKey")
|
||||
}
|
||||
|
||||
extension UserDefaults {
|
||||
|
||||
func eraseAll() {
|
||||
extension Utils {
|
||||
static func eraseAllUserDefaults() {
|
||||
Defaults.remove(.pgpKeyURL)
|
||||
|
||||
Defaults.remove(.pgpKeyPassphrase)
|
||||
|
|
|
|||
|
|
@ -190,6 +190,6 @@ class PasswordStore {
|
|||
deleteCoreData(entityName: "PasswordEntity")
|
||||
deleteCoreData(entityName: "PasswordCategoryEntity")
|
||||
|
||||
Defaults.eraseAll()
|
||||
Utils.eraseAllUserDefaults()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue