TBD: remove bg color when disabling polygon

This commit is contained in:
dwelle 2025-05-07 23:04:22 +02:00
parent b3eb93f130
commit 012076a3e9

View File

@ -147,10 +147,12 @@ export const actionToggleLoopLock = register({
return element; return element;
} }
return newElementWith( return newElementWith(element, {
element, backgroundColor: newLoopLockState
toggleLinePolygonState(element, newLoopLockState), ? element.backgroundColor
); : "transparent",
...toggleLinePolygonState(element, newLoopLockState),
});
}), }),
appState, appState,
captureUpdate: CaptureUpdateAction.IMMEDIATELY, captureUpdate: CaptureUpdateAction.IMMEDIATELY,