feat(ui): bookmark new inpaint masks

This commit is contained in:
psychedelicious
2025-05-30 21:30:24 +10:00
parent 7a5fa25b48
commit 2a92524546

View File

@@ -199,7 +199,7 @@ export const newCanvasFromImage = async (arg: {
dispatch(bboxChangedFromCanvas({ x: 0, y: 0, width, height }));
dispatch(rasterLayerAdded({ overrides, isSelected: true }));
if (withInpaintMask) {
dispatch(inpaintMaskAdded({ isSelected: true }));
dispatch(inpaintMaskAdded({ isSelected: true, isBookmarked: true }));
}
dispatch(canvasClearHistory());
break;
@@ -216,7 +216,7 @@ export const newCanvasFromImage = async (arg: {
dispatch(bboxChangedFromCanvas({ x: 0, y: 0, width, height }));
dispatch(controlLayerAdded({ overrides, isSelected: true }));
if (withInpaintMask) {
dispatch(inpaintMaskAdded({ isSelected: true }));
dispatch(inpaintMaskAdded({ isSelected: true, isBookmarked: true }));
}
dispatch(canvasClearHistory());
break;
@@ -232,7 +232,7 @@ export const newCanvasFromImage = async (arg: {
dispatch(bboxChangedFromCanvas({ x: 0, y: 0, width, height }));
dispatch(inpaintMaskAdded({ overrides, isSelected: true }));
if (withInpaintMask) {
dispatch(inpaintMaskAdded({ isSelected: true }));
dispatch(inpaintMaskAdded({ isSelected: true, isBookmarked: true }));
}
dispatch(canvasClearHistory());
break;
@@ -248,7 +248,7 @@ export const newCanvasFromImage = async (arg: {
dispatch(bboxChangedFromCanvas({ x: 0, y: 0, width, height }));
dispatch(rgAdded({ overrides, isSelected: true }));
if (withInpaintMask) {
dispatch(inpaintMaskAdded({ isSelected: true }));
dispatch(inpaintMaskAdded({ isSelected: true, isBookmarked: true }));
}
dispatch(canvasClearHistory());
break;
@@ -259,7 +259,7 @@ export const newCanvasFromImage = async (arg: {
dispatch(canvasSessionStarted({ sessionType: 'advanced' }));
dispatch(referenceImageAdded({ overrides: { ipAdapter }, isSelected: true }));
if (withInpaintMask) {
dispatch(inpaintMaskAdded({ isSelected: true }));
dispatch(inpaintMaskAdded({ isSelected: true, isBookmarked: true }));
}
dispatch(canvasClearHistory());
break;
@@ -271,7 +271,7 @@ export const newCanvasFromImage = async (arg: {
dispatch(canvasSessionStarted({ sessionType: 'advanced' }));
dispatch(rgAdded({ overrides: { referenceImages }, isSelected: true }));
if (withInpaintMask) {
dispatch(inpaintMaskAdded({ isSelected: true }));
dispatch(inpaintMaskAdded({ isSelected: true, isBookmarked: true }));
}
dispatch(canvasClearHistory());
break;