Skip to content

Commit

Permalink
edit blocks need to mark the item as having changes #11
Browse files Browse the repository at this point in the history
  • Loading branch information
sobri909 committed May 7, 2018
1 parent 5676add commit 0c4ce2e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions LocoKit/LocalStore/PersistentPath.swift
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ open class PersistentPath: Path, PersistentObject {
guard let instance = self.currentInstance else { return }
store?.retain(instance)
mutex.sync { changes(instance) }
instance.hasChanges = true
instance.save(immediate: true)
}

Expand Down
1 change: 1 addition & 0 deletions LocoKit/LocalStore/PersistentVisit.swift
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ open class PersistentVisit: Visit, PersistentObject {
guard let instance = self.currentInstance else { return }
store?.retain(instance)
mutex.sync { changes(instance) }
instance.hasChanges = true
instance.save(immediate: true)
}

Expand Down

0 comments on commit 0c4ce2e

Please sign in to comment.