fix selection trash button
This commit is contained in:
parent
1f2e3f4f3a
commit
50214b4196
1 changed files with 2 additions and 2 deletions
|
|
@ -1848,12 +1848,13 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function platformUpdateSelected() {
|
function platformUpdateSelected() {
|
||||||
|
let selreal = selection.widgets();
|
||||||
let selwid = selection.widgets(true);
|
let selwid = selection.widgets(true);
|
||||||
let selcount = selwid.length;
|
let selcount = selwid.length;
|
||||||
let extruders = settings.device.extruders;
|
let extruders = settings.device.extruders;
|
||||||
|
UI.trash.style.display = selreal.length ? 'flex' : '';
|
||||||
if (selcount) {
|
if (selcount) {
|
||||||
UI.nozzle.classList.add('lt-active');
|
UI.nozzle.classList.add('lt-active');
|
||||||
UI.trash.style.display = 'flex';
|
|
||||||
if (feature.meta && selcount === 1) {
|
if (feature.meta && selcount === 1) {
|
||||||
let sel = selwid[0];
|
let sel = selwid[0];
|
||||||
let name = sel.meta.file || sel.meta.url;
|
let name = sel.meta.file || sel.meta.url;
|
||||||
|
|
@ -1881,7 +1882,6 @@
|
||||||
UI.mesh.points.innerText = '-';
|
UI.mesh.points.innerText = '-';
|
||||||
UI.mesh.faces.innerText = '-';
|
UI.mesh.faces.innerText = '-';
|
||||||
UI.nozzle.classList.remove('lt-active');
|
UI.nozzle.classList.remove('lt-active');
|
||||||
UI.trash.style.display = '';
|
|
||||||
}
|
}
|
||||||
UI.nozzle.style.display = extruders && extruders.length > 1 ? 'flex' : '';
|
UI.nozzle.style.display = extruders && extruders.length > 1 ? 'flex' : '';
|
||||||
if (extruders) {
|
if (extruders) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue