mirror of
https://github.com/yattee/yattee.git
synced 2025-04-24 23:56:27 +00:00
Revert "fixed some potential crashes"
This reverts commit bde9aade1173a8a466e3d54e2adc39bea49efe97.
This commit is contained in:
parent
f0d581d512
commit
13382270d5
@ -20,16 +20,10 @@ final class Store<Data>: ResourceObserver, ObservableObject {
|
||||
}
|
||||
|
||||
func replace(_ items: Data) {
|
||||
// Ensure the change happens on the main thread
|
||||
DispatchQueue.main.async {
|
||||
self.all = items
|
||||
}
|
||||
all = items
|
||||
}
|
||||
|
||||
func clear() {
|
||||
// Ensure clearing happens on the main thread
|
||||
DispatchQueue.main.async {
|
||||
self.all = nil
|
||||
}
|
||||
all = nil
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user