checkpoint ui refactor
This commit is contained in:
parent
3296d8e3a0
commit
331bff9378
7 changed files with 88 additions and 98 deletions
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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';
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue