Skip to content

Commit 3a26db0

Browse files
committed
Reenable setting values for all profiles
1 parent 1dd24ab commit 3a26db0

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

js/defaults_dialog.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1152,13 +1152,13 @@ helper.defaultsDialog = (function () {
11521152
return mspHelper.getSetting(input.key);
11531153
}).then(function () {
11541154
Promise.mapSeries(selectedDefaultPreset.settings, function (input, ii) {
1155-
// if (FC.isControlProfileParameter(input.key)) {
1156-
// return privateScope.setSettingForAllControlProfiles(input.key, input.value);
1157-
// } else if (FC.isBatteryProfileParameter(input.key)) {
1158-
// return privateScope.setSettingForAllBatteryProfiles(input.key, input.value);
1159-
// } else {
1160-
return mspHelper.setSetting(input.key, input.value);
1161-
// }
1155+
if (FC.isControlProfileParameter(input.key)) {
1156+
return privateScope.setSettingForAllControlProfiles(input.key, input.value);
1157+
} else if (FC.isBatteryProfileParameter(input.key)) {
1158+
return privateScope.setSettingForAllBatteryProfiles(input.key, input.value);
1159+
} else {
1160+
return mspHelper.setSetting(input.key, input.value);
1161+
}
11621162
}).then(function () {
11631163

11641164
// If default preset is associated to a mixer, apply the mixer as well

0 commit comments

Comments
 (0)