fix nozzle/tool hide/show state

This commit is contained in:
Stewart Allen 2024-05-20 22:36:20 -04:00
commit c6a7ff00b2
3 changed files with 3 additions and 10 deletions

View file

@ -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);