1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-13 11:29:53 +03:00

Reenable setting values for all profiles

This commit is contained in:
Pawel Spychalski (DzikuVx) 2023-12-06 15:07:24 +01:00
parent 1dd24abfd8
commit 3a26db0240

View file

@ -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