mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Preserve the active pane across serialization
This commit is contained in:
@@ -44,11 +44,13 @@ class PaneModel extends Model
|
||||
@when @$focused, => @makeActive()
|
||||
|
||||
@focus() if params?.focused
|
||||
@makeActive() if params?.active
|
||||
|
||||
serializeParams: ->
|
||||
items: compact(@items.map((item) -> item.serialize?()))
|
||||
activeItemUri: @activeItem?.getUri?()
|
||||
focused: @focused
|
||||
active: @active
|
||||
|
||||
deserializeParams: (params) ->
|
||||
{items, activeItemUri} = params
|
||||
|
||||
Reference in New Issue
Block a user