Fixes places where isCancelable could get stuck on

This commit is contained in:
psychedelicious 2022-10-29 04:44:03 +11:00
parent 8dee3387fd
commit 2859af386c
3 changed files with 5 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -6,7 +6,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>InvokeAI - A Stable Diffusion Toolkit</title>
<link rel="shortcut icon" type="icon" href="./assets/favicon.0d253ced.ico" />
<script type="module" crossorigin src="./assets/index.3e1dd33d.js"></script>
<script type="module" crossorigin src="./assets/index.3b67f519.js"></script>
<link rel="stylesheet" href="./assets/index.165b9042.css">
</head>

View File

@ -88,6 +88,7 @@ export const systemSlice = createSlice({
errorOccurred: (state) => {
state.hasError = true;
state.isProcessing = false;
state.isCancelable = true;
state.currentStep = 0;
state.totalSteps = 0;
state.currentIteration = 0;
@ -126,6 +127,7 @@ export const systemSlice = createSlice({
setIsConnected: (state, action: PayloadAction<boolean>) => {
state.isConnected = action.payload;
state.isProcessing = false;
state.isCancelable = true;
state.currentStep = 0;
state.totalSteps = 0;
state.currentIteration = 0;
@ -153,6 +155,7 @@ export const systemSlice = createSlice({
},
processingCanceled: (state) => {
state.isProcessing = false;
state.isCancelable = true;
state.currentStep = 0;
state.totalSteps = 0;
state.currentIteration = 0;