mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Removes unused isReady state
This commit is contained in:
parent
8d171bb044
commit
07ae626b22
@ -78,8 +78,6 @@ const appSelector = createSelector(
|
|||||||
const App = () => {
|
const App = () => {
|
||||||
const dispatch = useAppDispatch();
|
const dispatch = useAppDispatch();
|
||||||
|
|
||||||
// const [isReady, setIsReady] = useState<boolean>(false);
|
|
||||||
// const { isReady, reasonsWhyNotReady } = useAppSelector(readinessSelector);
|
|
||||||
const { shouldShowGalleryButton, shouldShowOptionsPanelButton } =
|
const { shouldShowGalleryButton, shouldShowOptionsPanelButton } =
|
||||||
useAppSelector(appSelector);
|
useAppSelector(appSelector);
|
||||||
|
|
||||||
@ -87,10 +85,6 @@ const App = () => {
|
|||||||
dispatch(requestSystemConfig());
|
dispatch(requestSystemConfig());
|
||||||
}, [dispatch]);
|
}, [dispatch]);
|
||||||
|
|
||||||
// useEffect(() => {
|
|
||||||
// dispatch(readinessChanged({ isReady, reasonsWhyNotReady }));
|
|
||||||
// }, [dispatch, isReady, reasonsWhyNotReady]);
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="App">
|
<div className="App">
|
||||||
<ImageUploader>
|
<ImageUploader>
|
||||||
|
@ -41,8 +41,6 @@ export interface SystemState
|
|||||||
shouldDisplayGuides: boolean;
|
shouldDisplayGuides: boolean;
|
||||||
wasErrorSeen: boolean;
|
wasErrorSeen: boolean;
|
||||||
isCancelable: boolean;
|
isCancelable: boolean;
|
||||||
isReady: boolean;
|
|
||||||
reasonsWhyNotReady: string[];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const initialSystemState = {
|
const initialSystemState = {
|
||||||
@ -187,11 +185,6 @@ export const systemSlice = createSlice({
|
|||||||
state.isProcessing = true;
|
state.isProcessing = true;
|
||||||
state.currentStatusHasSteps = false;
|
state.currentStatusHasSteps = false;
|
||||||
},
|
},
|
||||||
readinessChanged: (state, action: PayloadAction<ReadinessPayload>) => {
|
|
||||||
const { isReady, reasonsWhyNotReady } = action.payload;
|
|
||||||
state.isReady = isReady;
|
|
||||||
state.reasonsWhyNotReady = reasonsWhyNotReady;
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -214,7 +207,6 @@ export const {
|
|||||||
setModelList,
|
setModelList,
|
||||||
setIsCancelable,
|
setIsCancelable,
|
||||||
modelChangeRequested,
|
modelChangeRequested,
|
||||||
readinessChanged,
|
|
||||||
} = systemSlice.actions;
|
} = systemSlice.actions;
|
||||||
|
|
||||||
export default systemSlice.reducer;
|
export default systemSlice.reducer;
|
||||||
|
@ -86,7 +86,7 @@ const initialInpaintingState: InpaintingState = {
|
|||||||
isMovingBoundingBox: false,
|
isMovingBoundingBox: false,
|
||||||
stageScale: 1,
|
stageScale: 1,
|
||||||
shouldUseInpaintReplace: false,
|
shouldUseInpaintReplace: false,
|
||||||
inpaintReplace: 1,
|
inpaintReplace: 0.1,
|
||||||
shouldLockBoundingBox: true,
|
shouldLockBoundingBox: true,
|
||||||
isSpacebarHeld: false,
|
isSpacebarHeld: false,
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user