mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-03-23 01:49:53 +01:00
Fix bug where ListMonitor sectionIndexTitles are not updated on refetch (fixes #218)
This commit is contained in:
@@ -952,6 +952,8 @@ public final class ListMonitor<D: DynamicObject>: Hashable {
|
|||||||
sectionBy: self.sectionBy,
|
sectionBy: self.sectionBy,
|
||||||
applyFetchClauses: self.applyFetchClauses
|
applyFetchClauses: self.applyFetchClauses
|
||||||
)
|
)
|
||||||
|
newFetchedResultsControllerDelegate.enabled = false
|
||||||
|
newFetchedResultsControllerDelegate.handler = self
|
||||||
|
|
||||||
self.transactionQueue.async { [weak self] in
|
self.transactionQueue.async { [weak self] in
|
||||||
|
|
||||||
@@ -973,7 +975,7 @@ public final class ListMonitor<D: DynamicObject>: Hashable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
(self.fetchedResultsController, self.fetchedResultsControllerDelegate) = (newFetchedResultsController, newFetchedResultsControllerDelegate)
|
(self.fetchedResultsController, self.fetchedResultsControllerDelegate) = (newFetchedResultsController, newFetchedResultsControllerDelegate)
|
||||||
newFetchedResultsControllerDelegate.handler = self
|
newFetchedResultsControllerDelegate.enabled = true
|
||||||
|
|
||||||
self.isPendingRefetch = false
|
self.isPendingRefetch = false
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user