Fixed unable to uncheck options when loading presets.

This commit is contained in:
Quentin Decaunes 2019-06-07 19:40:07 +02:00
parent da3e5e9009
commit fdc6559509

View File

@ -447,6 +447,9 @@ function getCurrentSettings(keyType) {
inputs.forEach(element => { inputs.forEach(element => {
let id = element.id; let id = element.id;
let value = element.value; let value = element.value;
if (id.indexOf('apply_') === 0) {
value = element.checked;
}
currentSettings[id] = value; currentSettings[id] = value;
}); });
return currentSettings; return currentSettings;