mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
feat(ui): alt-click comparison image exits compare
This commit is contained in:
parent
1c9c982b63
commit
ad9740d72d
@ -38,7 +38,11 @@ export const gallerySlice = createSlice({
|
||||
state.selection = uniqBy(action.payload, (i) => i.image_name);
|
||||
},
|
||||
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) {
|
||||
state.isImageViewerOpen = true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user