Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Commit

Permalink
Re-implements hinding behavior based on promise to fix timing error.
Browse files Browse the repository at this point in the history
  • Loading branch information
joaotmartins committed Oct 30, 2021
1 parent 4ec3cdd commit 4e82237
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions lib/tree-view-package.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,13 @@ class TreeViewPackage {
activateItem: showOnAttach
})

if (atom.config.get("tree-view.hiddenOnStartup")) {
this.getTreeViewInstance().hide();
} else {
this.getTreeViewInstance().show();
}
this.treeViewOpenPromise.then(() => {
if (atom.config.get("tree-view.hiddenOnStartup")) {
this.treeView.hide();
} else {
this.treeView.show();
}
})
}

async deactivate () {
Expand Down

0 comments on commit 4e82237

Please sign in to comment.