mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
chore(ui): control adapter docstrings
This commit is contained in:
@ -69,10 +69,12 @@ const predicate: AnyListenerPredicate<RootState> = (
|
|||||||
return isProcessorSelected && hasControlImage;
|
return isProcessorSelected && hasControlImage;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const DEBOUNCE_MS = 300;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Listener that automatically processes a ControlNet image when its processor parameters are changed.
|
* Listener that automatically processes a ControlNet image when its processor parameters are changed.
|
||||||
*
|
*
|
||||||
* The network request is debounced by 1 second.
|
* The network request is debounced.
|
||||||
*/
|
*/
|
||||||
export const addControlNetAutoProcessListener = () => {
|
export const addControlNetAutoProcessListener = () => {
|
||||||
startAppListening({
|
startAppListening({
|
||||||
@ -85,7 +87,7 @@ export const addControlNetAutoProcessListener = () => {
|
|||||||
cancelActiveListeners();
|
cancelActiveListeners();
|
||||||
log.trace('ControlNet auto-process triggered');
|
log.trace('ControlNet auto-process triggered');
|
||||||
// Delay before starting actual work
|
// Delay before starting actual work
|
||||||
await delay(300);
|
await delay(DEBOUNCE_MS);
|
||||||
|
|
||||||
dispatch(controlAdapterImageProcessed({ id }));
|
dispatch(controlAdapterImageProcessed({ id }));
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user