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:
parent
1dd24abfd8
commit
3a26db0240
1 changed files with 7 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue