clearEntries -> reset
This commit is contained in:
parent
6d19c4b81d
commit
26512b7318
|
@ -54,8 +54,9 @@ struct KeyData: Codable {
|
|||
entries.removeAll(where: { $0.id == id })
|
||||
}
|
||||
|
||||
mutating func clearEntries() {
|
||||
mutating func reset() {
|
||||
entries.removeAll()
|
||||
folders.removeAll()
|
||||
}
|
||||
|
||||
mutating func addFolder() {
|
||||
|
|
|
@ -66,8 +66,8 @@ class KeyStore: ObservableObject {
|
|||
data.removeKey(entryID: id)
|
||||
}
|
||||
|
||||
func clearEntries() {
|
||||
data.clearEntries()
|
||||
func reset() {
|
||||
data.reset()
|
||||
}
|
||||
|
||||
func addFolder() {
|
||||
|
|
Loading…
Reference in New Issue