mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Allow items closed in docks to be reopened
This commit is contained in:
committed by
Max Brunsfeld
parent
68f5448fbe
commit
6f6ec70094
@@ -3,13 +3,14 @@
|
||||
const TextEditor = require('./text-editor')
|
||||
|
||||
module.exports = class WorkspaceCenter {
|
||||
constructor ({paneContainer, didActivate, didChangeActivePaneItem}) {
|
||||
constructor ({paneContainer, didActivate, didChangeActivePaneItem, didDestroyPaneItem}) {
|
||||
this.paneContainer = paneContainer
|
||||
this.didActivate = didActivate
|
||||
this.paneContainer.onDidActivatePane(() => this.didActivate(this))
|
||||
this.paneContainer.onDidChangeActivePaneItem((item) => {
|
||||
didChangeActivePaneItem(this, item)
|
||||
})
|
||||
this.paneContainer.onDidDestroyPaneItem((item) => didDestroyPaneItem(item))
|
||||
}
|
||||
|
||||
activate () {
|
||||
|
||||
Reference in New Issue
Block a user