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 dispatch = useAppDispatch();
|
||||
|
||||
// const [isReady, setIsReady] = useState<boolean>(false);
|
||||
// const { isReady, reasonsWhyNotReady } = useAppSelector(readinessSelector);
|
||||
const { shouldShowGalleryButton, shouldShowOptionsPanelButton } =
|
||||
useAppSelector(appSelector);
|
||||
|
||||
@ -87,10 +85,6 @@ const App = () => {
|
||||
dispatch(requestSystemConfig());
|
||||
}, [dispatch]);
|
||||
|
||||
// useEffect(() => {
|
||||
// dispatch(readinessChanged({ isReady, reasonsWhyNotReady }));
|
||||
// }, [dispatch, isReady, reasonsWhyNotReady]);
|
||||
|
||||
return (
|
||||
<div className="App">
|
||||
<ImageUploader>
|
||||
|
@ -41,8 +41,6 @@ export interface SystemState
|
||||
shouldDisplayGuides: boolean;
|
||||
wasErrorSeen: boolean;
|
||||
isCancelable: boolean;
|
||||
isReady: boolean;
|
||||
reasonsWhyNotReady: string[];
|
||||
}
|
||||
|
||||
const initialSystemState = {
|
||||
@ -187,11 +185,6 @@ export const systemSlice = createSlice({
|
||||
state.isProcessing = true;
|
||||
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,
|
||||
setIsCancelable,
|
||||
modelChangeRequested,
|
||||
readinessChanged,
|
||||
} = systemSlice.actions;
|
||||
|
||||
export default systemSlice.reducer;
|
||||
|
@ -86,7 +86,7 @@ const initialInpaintingState: InpaintingState = {
|
||||
isMovingBoundingBox: false,
|
||||
stageScale: 1,
|
||||
shouldUseInpaintReplace: false,
|
||||
inpaintReplace: 1,
|
||||
inpaintReplace: 0.1,
|
||||
shouldLockBoundingBox: true,
|
||||
isSpacebarHeld: false,
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user