mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(ui): when changing viewer state, always clear compare image
This commit is contained in:
parent
8ea4067f83
commit
3cfd2755c2
@ -89,10 +89,7 @@ export const gallerySlice = createSlice({
|
|||||||
state.alwaysShowImageSizeBadge = action.payload;
|
state.alwaysShowImageSizeBadge = action.payload;
|
||||||
},
|
},
|
||||||
isImageViewerOpenChanged: (state, action: PayloadAction<boolean>) => {
|
isImageViewerOpenChanged: (state, action: PayloadAction<boolean>) => {
|
||||||
if (state.isImageViewerOpen && state.imageToCompare) {
|
state.imageToCompare = null;
|
||||||
state.imageToCompare = null;
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
state.isImageViewerOpen = action.payload;
|
state.isImageViewerOpen = action.payload;
|
||||||
},
|
},
|
||||||
comparedImagesSwapped: (state) => {
|
comparedImagesSwapped: (state) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user