clearEntries -> reset

This commit is contained in:
Shadowfacts 2021-08-24 22:51:14 -04:00
parent 6d19c4b81d
commit 26512b7318
2 changed files with 4 additions and 3 deletions

View File

@ -54,8 +54,9 @@ struct KeyData: Codable {
entries.removeAll(where: { $0.id == id }) entries.removeAll(where: { $0.id == id })
} }
mutating func clearEntries() { mutating func reset() {
entries.removeAll() entries.removeAll()
folders.removeAll()
} }
mutating func addFolder() { mutating func addFolder() {

View File

@ -66,8 +66,8 @@ class KeyStore: ObservableObject {
data.removeKey(entryID: id) data.removeKey(entryID: id)
} }
func clearEntries() { func reset() {
data.clearEntries() data.reset()
} }
func addFolder() { func addFolder() {