hide extruder selector outside of FDM mode
This commit is contained in:
parent
104f6c85e3
commit
cf59d0c947
2 changed files with 3 additions and 1 deletions
|
|
@ -997,6 +997,7 @@ self.kiri.copyright = exports.COPYRIGHT;
|
|||
|
||||
function platformUpdateSelected() {
|
||||
UI.selection.style.display = platform.selected_count() ? 'inline' : 'none';
|
||||
$('ext-sel').style.display = (MODE === MODES.FDM) ? 'inline' : 'none';
|
||||
let extruders = settings.device.extruders;
|
||||
if (extruders) {
|
||||
for (let i=0; i<extruders.length; i++) {
|
||||
|
|
@ -1882,6 +1883,7 @@ self.kiri.copyright = exports.COPYRIGHT;
|
|||
// if (MODE !== MODES.FDM) platform.layout();
|
||||
if (then) then();
|
||||
triggerSettingsEvent();
|
||||
platformUpdateSelected();
|
||||
}
|
||||
|
||||
function currentDeviceName() {
|
||||
|
|
|
|||
|
|
@ -203,7 +203,7 @@
|
|||
</table>
|
||||
</div>
|
||||
</span>
|
||||
<span class="sel-span">
|
||||
<span id="ext-sel" class="sel-span">
|
||||
<label class="label">extruder</label>
|
||||
<div class="sel-pop"><div id="sel-ext"></div></div>
|
||||
</span>
|
||||
|
|
|
|||
Loading…
Reference in a new issue