Always show the dock when an item is dropped into it

Previously, we were only showing it when going from 0 -> 1 items (which
is a bug).
This commit is contained in:
Matthew Dapena-Tretter
2017-03-27 18:17:02 -07:00
parent 3b23ab44bc
commit 08e8975a10

View File

@@ -203,9 +203,7 @@ module.exports = class Dock {
handleDidAddPaneItem () {
// Show the dock if you drop an item into it.
if (this.paneContainer.getPaneItems().length === 1) {
this.setState({open: true})
}
this.setState({open: true})
}
handleDidRemovePaneItem () {