mirror of
https://github.com/atom/atom.git
synced 2026-02-07 05:05:02 -05:00
Focus the active center pane when hiding a dock
This commit is contained in:
@@ -36,6 +36,7 @@ module.exports = class Workspace extends Model {
|
||||
this.updateDocumentEdited = this.updateDocumentEdited.bind(this)
|
||||
this.didDestroyPaneItem = this.didDestroyPaneItem.bind(this)
|
||||
this.didChangeActivePaneItem = this.didChangeActivePaneItem.bind(this)
|
||||
this.didHideDock = this.didHideDock.bind(this)
|
||||
|
||||
this.packageManager = params.packageManager
|
||||
this.config = params.config
|
||||
@@ -112,12 +113,17 @@ module.exports = class Workspace extends Model {
|
||||
applicationDelegate: this.applicationDelegate,
|
||||
deserializerManager: this.deserializerManager,
|
||||
notificationManager: this.notificationManager,
|
||||
viewRegistry: this.viewRegistry
|
||||
viewRegistry: this.viewRegistry,
|
||||
didHide: this.didHideDock
|
||||
})
|
||||
dock.onDidDestroyPaneItem(this.didDestroyPaneItem)
|
||||
return dock
|
||||
}
|
||||
|
||||
didHideDock () {
|
||||
this.getCenter().getActivePane().activate()
|
||||
}
|
||||
|
||||
reset (packageManager) {
|
||||
this.packageManager = packageManager
|
||||
this.emitter.dispose()
|
||||
|
||||
Reference in New Issue
Block a user