fix nozzle/tool hide/show state
This commit is contained in:
parent
7e4bc43bfd
commit
c6a7ff00b2
3 changed files with 3 additions and 10 deletions
|
|
@ -919,8 +919,9 @@ gapp.register("kiri.main", [], (root, exports) => {
|
|||
current.device = clone(current.cdev[mode]);
|
||||
api.event.emit('device.set', currentDeviceName());
|
||||
}
|
||||
// really belongs in CAM driver (lots of work / abstraction needed)
|
||||
// updateStockVisibility();
|
||||
// hide/show
|
||||
api.uc.setVisible($('menu-nozzle'), mode === 'FDM');
|
||||
api.uc.setVisible($('set-tools'), mode === 'CAM');
|
||||
// updates right-hand menu by enabling/disabling fields
|
||||
setViewMode(VIEWS.ARRANGE);
|
||||
UC.setMode(MODE);
|
||||
|
|
|
|||
Loading…
Reference in a new issue