restore extruder drop down population

This commit is contained in:
Stewart Allen 2024-05-29 23:11:44 -04:00
commit 5c56c4e860
2 changed files with 12 additions and 3 deletions

View file

@ -791,6 +791,15 @@ gapp.register("kiri.init", [], (root, exports) => {
ui.fwRetract.checked = dev.fwRetract;
if (!dev.filamentSource) ui.filamentSource.selectedIndex = 0;
// add extruder selection buttons
if (dev.extruders) {
let ext = api.lists.extruders = [];
dev.internal = 0;
for (let i=0; i<dev.extruders.length; i++) {
ext.push({id:i, name:i});
}
}
// disable editing for non-local devices
[
ui.deviceName,