mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Disable stage info in Inpainting Tab
This commit is contained in:
parent
e21e901fa2
commit
5410d42da0
@ -76,7 +76,6 @@ const canvasSelector = createSelector(
|
|||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
activeTabName,
|
|
||||||
isMaskEnabled,
|
isMaskEnabled,
|
||||||
isModifyingBoundingBox: isTransformingBoundingBox || isMovingBoundingBox,
|
isModifyingBoundingBox: isTransformingBoundingBox || isMovingBoundingBox,
|
||||||
shouldShowBoundingBox,
|
shouldShowBoundingBox,
|
||||||
@ -86,6 +85,7 @@ const canvasSelector = createSelector(
|
|||||||
stageDimensions,
|
stageDimensions,
|
||||||
stageScale,
|
stageScale,
|
||||||
tool,
|
tool,
|
||||||
|
outpaintingOnly: activeTabName === 'outpainting',
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -101,7 +101,6 @@ export let canvasImageLayerRef: MutableRefObject<Konva.Layer | null>;
|
|||||||
|
|
||||||
const IAICanvas = () => {
|
const IAICanvas = () => {
|
||||||
const {
|
const {
|
||||||
activeTabName,
|
|
||||||
isMaskEnabled,
|
isMaskEnabled,
|
||||||
isModifyingBoundingBox,
|
isModifyingBoundingBox,
|
||||||
shouldShowBoundingBox,
|
shouldShowBoundingBox,
|
||||||
@ -111,6 +110,7 @@ const IAICanvas = () => {
|
|||||||
stageDimensions,
|
stageDimensions,
|
||||||
stageScale,
|
stageScale,
|
||||||
tool,
|
tool,
|
||||||
|
outpaintingOnly,
|
||||||
} = useAppSelector(canvasSelector);
|
} = useAppSelector(canvasSelector);
|
||||||
|
|
||||||
useCanvasHotkeys();
|
useCanvasHotkeys();
|
||||||
@ -161,9 +161,7 @@ const IAICanvas = () => {
|
|||||||
onWheel={handleWheel}
|
onWheel={handleWheel}
|
||||||
listening={tool === 'move' && !isModifyingBoundingBox}
|
listening={tool === 'move' && !isModifyingBoundingBox}
|
||||||
draggable={
|
draggable={
|
||||||
tool === 'move' &&
|
tool === 'move' && !isModifyingBoundingBox && outpaintingOnly
|
||||||
!isModifyingBoundingBox &&
|
|
||||||
activeTabName === 'outpainting'
|
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
<Layer id={'grid'} visible={shouldShowGrid}>
|
<Layer id={'grid'} visible={shouldShowGrid}>
|
||||||
@ -211,7 +209,7 @@ const IAICanvas = () => {
|
|||||||
/>
|
/>
|
||||||
</Layer>
|
</Layer>
|
||||||
</Stage>
|
</Stage>
|
||||||
<IAICanvasStatusText />
|
{outpaintingOnly && <IAICanvasStatusText />}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user