Skip to content

Commit 512525a

Browse files
committed
1 parent 039a962 commit 512525a

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

.jshintrc

+2-1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"document": true,
3939
"brackets": true,
4040
"define": true,
41-
"Mustache": true
41+
"Mustache": true,
42+
"window": true
4243
}
4344
}

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
**If you'll get an error right after updating just close all Brackets instances and start again. We are aware of this problem.**
44

5+
## 0.13.13
6+
* BUGFIX: Settings & Changelog dialogs are no longer displayed on startup when running tests.
7+
58
## 0.13.12
69
* Updated German translation by [Marcel Gerber](https://github.com/SAPlayer)
710
* History now remembers last used Expand All/Collapse All.

main.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,15 @@ define(function (require, exports, module) {
4141

4242
// Display settings panel on first start / changelog dialog on version change
4343
ExtensionInfo.get().then(function (packageJson) {
44+
// do not display dialogs when running tests
45+
if (window.isBracketsTestWindow) {
46+
return;
47+
}
48+
4449
var lastVersion = Preferences.get("lastVersion"),
4550
currentVersion = packageJson.version;
4651

47-
if (lastVersion === null) {
52+
if (!lastVersion) {
4853
Preferences.persist("lastVersion", "firstStart");
4954
SettingsDialog.show();
5055
} else if (lastVersion !== currentVersion) {

0 commit comments

Comments
 (0)