fix adding cnc ops

This commit is contained in:
Stewart Allen 2024-05-28 18:02:52 -04:00
commit c7456c7736
7 changed files with 313 additions and 276 deletions

View file

@ -234,14 +234,12 @@ function platformUpdateSelected() {
const { device } = settings;
const { extruders } = device;
const { selection, ui } = api;
const { area, enable, disable } = ui.options;
const { enable, disable } = ui.options;
const selreal = selection.widgets();
const selwid = selection.widgets(true);
const selcount = selwid.length;
area.style.display = selreal.length ? 'flex' : '';
if (selcount) {
let enaC = selwid.filter(w => w.meta.disabled !== true).length;
let disC = selwid.filter(w => w.meta.disabled === true).length;