checkpoint ui refactor

This commit is contained in:
Stewart Allen 2024-05-23 00:38:38 -04:00
commit 331bff9378
7 changed files with 88 additions and 98 deletions

View file

@ -187,8 +187,6 @@ CAM.init = function(kiri, api) {
if (wannot.tab && wannot.tab.length) hasTabs = true;
if (wannot.trace && wannot.trace.length) hasTraces = true;
}
// show/hide dots in enabled process pop buttons
api.ui.camTabs.marker.style.display = hasTabs ? 'flex' : 'none';
api.platform.update_bounds();
updateIndex();
updateStock();

View file

@ -137,9 +137,9 @@ FDM.init = function(kiri, api) {
if (!isFdmMode) {
return;
}
// if (!api.conf.get().controller.danger) {
if (!api.conf.get().controller.danger) {
return;
// }
}
let pct = 0;
let int = setInterval(() => {
if (pct <= 1) {

View file

@ -28,7 +28,6 @@ const LASER = driver.LASER = {
function init(kiri, api) {
api.event.on("settings.saved", (settings) => {
let ui = kiri.api.ui;
ui.knife.marker.style.display = ui.knifeOn.checked ? '' : 'none';
});
}