Skip to content

Commit 67d6cf1

Browse files
psychedelicioushipsterusername
authored andcommitted
fix(ui): switch to viewer if auto-switch is enabled
1 parent a9bf651 commit 67d6cf1

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

invokeai/frontend/web/src/app/store/middleware/listenerMiddleware/listeners/socketio/socketInvocationComplete.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@ import { logger } from 'app/logging/logger';
22
import type { AppStartListening } from 'app/store/middleware/listenerMiddleware';
33
import { parseify } from 'common/util/serialize';
44
import { addImageToStagingArea } from 'features/canvas/store/canvasSlice';
5-
import { boardIdSelected, galleryViewChanged, imageSelected } from 'features/gallery/store/gallerySlice';
5+
import {
6+
boardIdSelected,
7+
galleryViewChanged,
8+
imageSelected,
9+
isImageViewerOpenChanged,
10+
} from 'features/gallery/store/gallerySlice';
611
import { IMAGE_CATEGORIES } from 'features/gallery/store/types';
712
import { isImageOutput } from 'features/nodes/types/common';
813
import { CANVAS_OUTPUT } from 'features/nodes/util/graph/constants';
@@ -101,6 +106,7 @@ export const addInvocationCompleteEventListener = (startAppListening: AppStartLi
101106
}
102107

103108
dispatch(imageSelected(imageDTO));
109+
dispatch(isImageViewerOpenChanged(true));
104110
}
105111
}
106112
}

0 commit comments

Comments
 (0)