From 3a26db024004064ccf7594e65fda4c474024710b Mon Sep 17 00:00:00 2001 From: "Pawel Spychalski (DzikuVx)" Date: Wed, 6 Dec 2023 15:07:24 +0100 Subject: [PATCH] Reenable setting values for all profiles --- js/defaults_dialog.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/js/defaults_dialog.js b/js/defaults_dialog.js index 707d7ba1..532c4f6d 100644 --- a/js/defaults_dialog.js +++ b/js/defaults_dialog.js @@ -1152,13 +1152,13 @@ helper.defaultsDialog = (function () { return mspHelper.getSetting(input.key); }).then(function () { Promise.mapSeries(selectedDefaultPreset.settings, function (input, ii) { - // if (FC.isControlProfileParameter(input.key)) { - // return privateScope.setSettingForAllControlProfiles(input.key, input.value); - // } else if (FC.isBatteryProfileParameter(input.key)) { - // return privateScope.setSettingForAllBatteryProfiles(input.key, input.value); - // } else { - return mspHelper.setSetting(input.key, input.value); - // } + if (FC.isControlProfileParameter(input.key)) { + return privateScope.setSettingForAllControlProfiles(input.key, input.value); + } else if (FC.isBatteryProfileParameter(input.key)) { + return privateScope.setSettingForAllBatteryProfiles(input.key, input.value); + } else { + return mspHelper.setSetting(input.key, input.value); + } }).then(function () { // If default preset is associated to a mixer, apply the mixer as well