mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Call PaneContainer::itemAdded from PaneContainer::reopenItem
This ensures the active item in the new root is filtered out of the reopen stack, preventing a duplicate item from being opened.
This commit is contained in:
@@ -96,7 +96,9 @@ class PaneContainer extends View
|
||||
|
||||
setRoot: (root) ->
|
||||
@empty()
|
||||
@append(root) if root?
|
||||
if root?
|
||||
@append(root)
|
||||
@itemAdded(root.activeItem) if root.activeItem
|
||||
@state.set(root: root?.getState())
|
||||
|
||||
removeChild: (child) ->
|
||||
|
||||
Reference in New Issue
Block a user