fix display of extruder mode in device editor
This commit is contained in:
parent
3afe3eb9b6
commit
39c4ad85a7
3 changed files with 23 additions and 4 deletions
|
|
@ -3252,7 +3252,8 @@ self.kiri.license = exports.LICENSE;
|
|||
var cmd = code.cmd || {},
|
||||
set = code.settings || {},
|
||||
local = isLocalDevice(devicename),
|
||||
dproc = settings.devproc[devicename];
|
||||
dproc = settings.devproc[devicename],
|
||||
mode = getMode();
|
||||
|
||||
settings.device = {
|
||||
bedHeight: 2.5,
|
||||
|
|
@ -3338,6 +3339,7 @@ self.kiri.license = exports.LICENSE;
|
|||
});
|
||||
|
||||
// hide spindle fields when device doens't support it
|
||||
if (mode === 'CAM')
|
||||
[
|
||||
UI.setDeviceExtrusion,
|
||||
UI.roughingSpindle,
|
||||
|
|
@ -3353,8 +3355,8 @@ self.kiri.license = exports.LICENSE;
|
|||
updateFields();
|
||||
updatePlatformSize();
|
||||
|
||||
settings.filter[getMode()] = devicename;
|
||||
settings.cdev[getMode()] = dev;
|
||||
settings.filter[mode] = devicename;
|
||||
settings.cdev[mode] = dev;
|
||||
|
||||
// restore last process associated with this device
|
||||
if (dproc) loadNamedSetting(null, dproc);
|
||||
|
|
|
|||
Loading…
Reference in a new issue