|
2 | 2 |
|
3 | 3 | define(function (require, exports) { |
4 | 4 |
|
5 | | - const _ = brackets.getModule("thirdparty/lodash"), |
| 5 | + const _ = brackets.getModule("thirdparty/lodash"), |
| 6 | + StateManager = brackets.getModule("preferences/StateManager"), |
6 | 7 | CodeInspection = brackets.getModule("language/CodeInspection"), |
7 | 8 | CommandManager = brackets.getModule("command/CommandManager"), |
8 | 9 | Commands = brackets.getModule("command/Commands"), |
@@ -40,7 +41,8 @@ define(function (require, exports) { |
40 | 41 | gitDiffDialogTemplate = require("text!templates/git-diff-dialog.html"), |
41 | 42 | questionDialogTemplate = require("text!templates/git-question-dialog.html"); |
42 | 43 |
|
43 | | - var showFileWhiteList = /^\.gitignore$/; |
| 44 | + const showFileWhiteList = /^\.gitignore$/, |
| 45 | + GIT_PANEL_SHOWN_ON_FIRST_BOOT = "GIT_PANEL_SHOWN_ON_FIRST_BOOT"; |
44 | 46 |
|
45 | 47 | const COMMIT_MODE = { |
46 | 48 | CURRENT: "CURRENT", |
@@ -1381,6 +1383,10 @@ define(function (require, exports) { |
1381 | 1383 | }); |
1382 | 1384 |
|
1383 | 1385 | EventEmitter.on(Events.GIT_ENABLED, function () { |
| 1386 | + if(!StateManager.get(GIT_PANEL_SHOWN_ON_FIRST_BOOT)){ |
| 1387 | + StateManager.set(GIT_PANEL_SHOWN_ON_FIRST_BOOT, true); |
| 1388 | + toggle(true); |
| 1389 | + } |
1384 | 1390 | // Add info from Git to panel |
1385 | 1391 | Git.getConfig("user.name").then(function (currentUserName) { |
1386 | 1392 | EventEmitter.emit(Events.GIT_USERNAME_CHANGED, currentUserName); |
|
0 commit comments