mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-01-14 13:13:33 +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,
|
||||
applyFetchClauses: self.applyFetchClauses
|
||||
)
|
||||
newFetchedResultsControllerDelegate.enabled = false
|
||||
newFetchedResultsControllerDelegate.handler = self
|
||||
|
||||
self.transactionQueue.async { [weak self] in
|
||||
|
||||
@@ -973,7 +975,7 @@ public final class ListMonitor<D: DynamicObject>: Hashable {
|
||||
}
|
||||
|
||||
(self.fetchedResultsController, self.fetchedResultsControllerDelegate) = (newFetchedResultsController, newFetchedResultsControllerDelegate)
|
||||
newFetchedResultsControllerDelegate.handler = self
|
||||
newFetchedResultsControllerDelegate.enabled = true
|
||||
|
||||
self.isPendingRefetch = false
|
||||
|
||||
|
||||
Reference in New Issue
Block a user