Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Commit 9c722a6

Browse files
author
Nitesh Kumar
committed
Application Name correction
1 parent 6f33003 commit 9c722a6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/extensions/default/OpenWithExternalApplication/GraphicsFile.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,11 @@ define(function (require, exports, module) {
119119
for (var key in fileTypeToAppMap) {
120120
if (fileTypeToAppMap.hasOwnProperty(key)) {
121121
if(key && !prefs[key]) {
122-
prefs[key] = "default";
122+
prefs[key] = fileTypeToAppMap[key];
123+
if(brackets.platform === "win" && !fileTypeToAppMap[key].endsWith('.exe') &&
124+
!fileTypeToAppMap[key].endsWith('.EXE')) {
125+
prefs[key] = "default";
126+
}
123127
}
124128
}
125129
}

0 commit comments

Comments
 (0)