From 2a92524546a380c6c3a81a77f3866bbb28bb005b Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Fri, 30 May 2025 21:30:24 +1000 Subject: [PATCH] feat(ui): bookmark new inpaint masks --- .../web/src/features/imageActions/actions.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/invokeai/frontend/web/src/features/imageActions/actions.ts b/invokeai/frontend/web/src/features/imageActions/actions.ts index 99497ca928..d432433903 100644 --- a/invokeai/frontend/web/src/features/imageActions/actions.ts +++ b/invokeai/frontend/web/src/features/imageActions/actions.ts @@ -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;