add more hover-pop info to app header

This commit is contained in:
Stewart Allen 2020-06-08 11:54:57 -04:00
commit add57f7d95
4 changed files with 59 additions and 3 deletions

View file

@ -1779,6 +1779,8 @@
$('mode-sla').onclick = () => { API.mode.set('SLA') };
$('mode-cam').onclick = () => { API.mode.set('CAM') };
$('mode-laser').onclick = () => { API.mode.set('LASER') };
$('app-info').innerText = KIRI.version;
}
// if a language needs to load, the script is injected and loaded

View file

@ -1431,6 +1431,8 @@
}
API.conf.save();
platform.update_stock();
$('mode-device').innerText = settings.device.deviceName;
$('mode-profile').innerText = settings.process.processName;
}
function saveSettings() {
@ -1890,7 +1892,7 @@
DBUG.log("invalid mode: "+mode);
mode = 'FDM';
}
$('app-mode').innerHTML = mode;
$('app-mode-name').innerHTML = mode;
$('set-tools').style.display = mode === 'CAM' ? '' : 'none';
settings.mode = mode;
// restore cached device profile for this mode