mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Add loopback to just img2img. Remove from settings.
This commit is contained in:
parent
9a6a970771
commit
25b19b9ab8
@ -1,13 +1,19 @@
|
||||
import InvokeButton from './InvokeButton';
|
||||
import CancelButton from './CancelButton';
|
||||
import LoopbackButton from './Loopback';
|
||||
import { useAppSelector } from 'app/store';
|
||||
import { activeTabNameSelector } from 'features/options/store/optionsSelectors';
|
||||
|
||||
/**
|
||||
* Buttons to start and cancel image generation.
|
||||
*/
|
||||
const ProcessButtons = () => {
|
||||
const activeTabName = useAppSelector(activeTabNameSelector);
|
||||
|
||||
return (
|
||||
<div className="process-buttons">
|
||||
<InvokeButton />
|
||||
{activeTabName === 'img2img' && <LoopbackButton />}
|
||||
<CancelButton />
|
||||
</div>
|
||||
);
|
||||
|
@ -32,11 +32,10 @@ import IAISelect from 'common/components/IAISelect';
|
||||
import IAINumberInput from 'common/components/IAINumberInput';
|
||||
import { systemSelector } from 'features/system/store/systemSelectors';
|
||||
import { optionsSelector } from 'features/options/store/optionsSelectors';
|
||||
import { setShouldLoopback } from 'features/options/store/optionsSlice';
|
||||
|
||||
const selector = createSelector(
|
||||
[systemSelector, optionsSelector],
|
||||
(system, options) => {
|
||||
(system) => {
|
||||
const {
|
||||
shouldDisplayInProgressType,
|
||||
shouldConfirmOnDelete,
|
||||
@ -46,8 +45,6 @@ const selector = createSelector(
|
||||
enableImageDebugging,
|
||||
} = system;
|
||||
|
||||
const { shouldLoopback } = options;
|
||||
|
||||
return {
|
||||
shouldDisplayInProgressType,
|
||||
shouldConfirmOnDelete,
|
||||
@ -55,7 +52,6 @@ const selector = createSelector(
|
||||
models: _.map(model_list, (_model, key) => key),
|
||||
saveIntermediatesInterval,
|
||||
enableImageDebugging,
|
||||
shouldLoopback,
|
||||
};
|
||||
},
|
||||
{
|
||||
@ -97,7 +93,6 @@ const SettingsModal = ({ children }: SettingsModalProps) => {
|
||||
shouldDisplayGuides,
|
||||
saveIntermediatesInterval,
|
||||
enableImageDebugging,
|
||||
shouldLoopback,
|
||||
} = useAppSelector(selector);
|
||||
|
||||
/**
|
||||
@ -178,14 +173,6 @@ const SettingsModal = ({ children }: SettingsModalProps) => {
|
||||
dispatch(setShouldDisplayGuides(e.target.checked))
|
||||
}
|
||||
/>
|
||||
<IAISwitch
|
||||
styleClass="settings-modal-item"
|
||||
label={'Image to Image Loopback'}
|
||||
isChecked={shouldLoopback}
|
||||
onChange={(e: ChangeEvent<HTMLInputElement>) =>
|
||||
dispatch(setShouldLoopback(e.target.checked))
|
||||
}
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div className="settings-modal-items">
|
||||
|
Loading…
Reference in New Issue
Block a user