clearEntries -> reset
This commit is contained in:
parent
6d19c4b81d
commit
26512b7318
|
@ -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() {
|
||||||
|
|
|
@ -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() {
|
||||||
|
|
Loading…
Reference in New Issue