mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Don't serialize undo/redo stacks when the user is idle
This commit is contained in:
@@ -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})
|
||||
)
|
||||
|
||||
###
|
||||
|
||||
Reference in New Issue
Block a user