Don't serialize undo/redo stacks when the user is idle

This commit is contained in:
Max Brunsfeld
2017-06-07 11:21:39 -07:00
parent 1a2a5e29a6
commit 8f106d2d44
2 changed files with 6 additions and 3 deletions

View File

@@ -76,7 +76,8 @@ class Project extends Model
paths: @getPaths()
buffers: _.compact(@buffers.map (buffer) ->
if buffer.isRetained()
buffer.serialize({markerLayers: options.isUnloading is true})
isUnloading = options.isUnloading is true
buffer.serialize({markerLayers: isUnloading, history: isUnloading})
)
###