mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-02-18 22:54:39 -05:00
feat(ui): alt-click comparison image exits compare
This commit is contained in:
@@ -38,7 +38,11 @@ export const gallerySlice = createSlice({
|
|||||||
state.selection = uniqBy(action.payload, (i) => i.image_name);
|
state.selection = uniqBy(action.payload, (i) => i.image_name);
|
||||||
},
|
},
|
||||||
imageToCompareChanged: (state, action: PayloadAction<ImageDTO | null>) => {
|
imageToCompareChanged: (state, action: PayloadAction<ImageDTO | null>) => {
|
||||||
state.imageToCompare = action.payload;
|
if (state.imageToCompare?.image_name === action.payload?.image_name) {
|
||||||
|
state.imageToCompare = null;
|
||||||
|
} else {
|
||||||
|
state.imageToCompare = action.payload;
|
||||||
|
}
|
||||||
if (action.payload) {
|
if (action.payload) {
|
||||||
state.isImageViewerOpen = true;
|
state.isImageViewerOpen = true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user