mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-11-13 12:23:49 +01:00
Fix bug where ListMonitor sectionIndexTitles are not updated on refetch (fixes #218)
This commit is contained in:
1 parent
5431e2e974
commit
c8b1c4358f
1 file changed
+3
-1
@@ -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