align ui and field names for auto edit/update
This commit is contained in:
parent
499f4ff2c2
commit
689a2ed3a3
3 changed files with 37 additions and 51 deletions
|
|
@ -1268,6 +1268,10 @@ self.kiri.copyright = exports.COPYRIGHT;
|
|||
uie.appendChild(opt);
|
||||
});
|
||||
if (chosen) uie.selectedIndex = chosen;
|
||||
} else if (typ === 'textarea') {
|
||||
if (Array.isArray(val)) {
|
||||
uie.value = val.join('\n');
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1327,6 +1331,7 @@ self.kiri.copyright = exports.COPYRIGHT;
|
|||
let device = settings.device;
|
||||
if (device.extruders && device.extruders[device.internal]) {
|
||||
updateFieldsFromSettings(device.extruders[device.internal]);
|
||||
UI.extruder.firstChild.innerText = `${LANG.dv_gr_ext} [${device.internal+1}/${device.extruders.length}]`;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue