1
0
mirror of https://github.com/adobe/brackets.git synced 2024-11-20 09:53:00 +01:00

Application Name correction

This commit is contained in:
Nitesh Kumar 2020-03-13 12:42:55 +05:30
parent 6f33003624
commit 9c722a6be5

View File

@ -119,10 +119,14 @@ define(function (require, exports, module) {
for (var key in fileTypeToAppMap) { for (var key in fileTypeToAppMap) {
if (fileTypeToAppMap.hasOwnProperty(key)) { if (fileTypeToAppMap.hasOwnProperty(key)) {
if(key && !prefs[key]) { if(key && !prefs[key]) {
prefs[key] = fileTypeToAppMap[key];
if(brackets.platform === "win" && !fileTypeToAppMap[key].endsWith('.exe') &&
!fileTypeToAppMap[key].endsWith('.EXE')) {
prefs[key] = "default"; prefs[key] = "default";
} }
} }
} }
}
PreferencesManager.set('externalApplications', prefs); PreferencesManager.set('externalApplications', prefs);