Ver código fonte

Set automaticallyMergesChangesFromParent to false as we are using Persistent History Tracking

polscm32 1 ano atrás
pai
commit
1679ccb026
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      Model/CoreDataStack.swift

+ 1 - 1
Model/CoreDataStack.swift

@@ -88,7 +88,7 @@ class CoreDataStack: ObservableObject {
         let taskContext = persistentContainer.newBackgroundContext()
 
         /// ensure that the background contexts stay in sync with the main context
-        taskContext.automaticallyMergesChangesFromParent = true
+        taskContext.automaticallyMergesChangesFromParent = false
         taskContext.mergePolicy = NSMergeByPropertyObjectTrumpMergePolicy
         taskContext.undoManager = nil
         return taskContext