mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Minor bugfixes
- When doing long-running canvas image exporting actions, display indeterminate progress bar - Fix staging area image outline not displaying after committing/discarding results
This commit is contained in:
parent
b6dd5b664c
commit
f08c78a043
@ -331,6 +331,7 @@ export const canvasSlice = createSlice({
|
||||
state.layerState.stagingArea = {
|
||||
...initialLayerState.stagingArea,
|
||||
};
|
||||
state.shouldShowStagingOutline = true;
|
||||
},
|
||||
addLine: (state, action: PayloadAction<number[]>) => {
|
||||
const { tool, layer, brushColor, brushSize } = state;
|
||||
@ -618,6 +619,7 @@ export const canvasSlice = createSlice({
|
||||
};
|
||||
|
||||
state.futureLayerStates = [];
|
||||
state.shouldShowStagingOutline = true;
|
||||
},
|
||||
fitBoundingBoxToStage: (state) => {
|
||||
const {
|
||||
|
@ -11,6 +11,7 @@ import {
|
||||
setCurrentStatus,
|
||||
setIsCancelable,
|
||||
setIsProcessing,
|
||||
setProcessingIndeterminateTask,
|
||||
} from 'features/system/store/systemSlice';
|
||||
import { addImage } from 'features/gallery/store/gallerySlice';
|
||||
import { setMergedCanvas } from '../canvasSlice';
|
||||
@ -42,8 +43,7 @@ export const mergeAndUploadCanvas =
|
||||
shouldSetAsInitialImage,
|
||||
} = config;
|
||||
|
||||
dispatch(setCurrentStatus('Exporting Image'));
|
||||
dispatch(setIsProcessing(true));
|
||||
dispatch(setProcessingIndeterminateTask('Exporting Image'));
|
||||
dispatch(setIsCancelable(false));
|
||||
|
||||
const state = getState() as RootState;
|
||||
|
@ -214,6 +214,11 @@ export const systemSlice = createSlice({
|
||||
clearToastQueue: (state) => {
|
||||
state.toastQueue = [];
|
||||
},
|
||||
setProcessingIndeterminateTask: (state, action: PayloadAction<string>) => {
|
||||
state.isProcessing = true;
|
||||
state.currentStatus = action.payload;
|
||||
state.currentStatusHasSteps = false;
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
@ -241,6 +246,7 @@ export const {
|
||||
generationRequested,
|
||||
addToast,
|
||||
clearToastQueue,
|
||||
setProcessingIndeterminateTask,
|
||||
} = systemSlice.actions;
|
||||
|
||||
export default systemSlice.reducer;
|
||||
|
Loading…
Reference in New Issue
Block a user