mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-04-23 03:00:31 -04:00
feat(ui): rework comparison activation, add hotkeys
This commit is contained in:
@@ -46,11 +46,7 @@ type SingleSelectionMenuItemsProps = {
|
||||
const SingleSelectionMenuItems = (props: SingleSelectionMenuItemsProps) => {
|
||||
const { imageDTO } = props;
|
||||
const optimalDimension = useAppSelector(selectOptimalDimension);
|
||||
const maySelectForCompare = useAppSelector(
|
||||
(s) =>
|
||||
s.gallery.imageToCompare?.image_name !== imageDTO.image_name &&
|
||||
s.gallery.selection.slice(-1)[0]?.image_name !== imageDTO.image_name
|
||||
);
|
||||
const maySelectForCompare = useAppSelector((s) => s.gallery.imageToCompare?.image_name !== imageDTO.image_name);
|
||||
const dispatch = useAppDispatch();
|
||||
const { t } = useTranslation();
|
||||
const isCanvasEnabled = useFeatureStatus('canvas');
|
||||
|
||||
Reference in New Issue
Block a user