Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 998971b

Browse files
committed
Serialize the panel
1 parent 1edb984 commit 998971b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lib/main.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ module.exports = Git = {
4242

4343
getFileListInstance().loadFromGitUtils()
4444

45+
if (state && state.panelVisible) {
46+
Git.openChangesPanel()
47+
}
48+
4549
process.nextTick(() => {
4650
this.subscriptions.add(atom.workspace.addOpener((uri) => {
4751
if (uri.startsWith(Common.DiffURI))
@@ -51,7 +55,9 @@ module.exports = Git = {
5155
},
5256

5357
serialize: () => {
54-
return {}
58+
return {
59+
panelVisible: this.changesPanel && this.changesPanel.isVisible()
60+
}
5561
},
5662

5763
deactivate: () => {

0 commit comments

Comments
 (0)