Merge pull request #11092 from AUTOMATIC1111/Generate-Forever-during-generation
Allow activation of Generate Forever during generation
This commit is contained in:
commit
89e6c60546
|
@ -148,12 +148,18 @@ var addContextMenuEventListener = initResponse[2];
|
||||||
500);
|
500);
|
||||||
};
|
};
|
||||||
|
|
||||||
appendContextMenuOption('#txt2img_generate', 'Generate forever', function() {
|
let generateOnRepeat_txt2img = function() {
|
||||||
generateOnRepeat('#txt2img_generate', '#txt2img_interrupt');
|
generateOnRepeat('#txt2img_generate', '#txt2img_interrupt');
|
||||||
});
|
};
|
||||||
appendContextMenuOption('#img2img_generate', 'Generate forever', function() {
|
|
||||||
|
let generateOnRepeat_img2img = function() {
|
||||||
generateOnRepeat('#img2img_generate', '#img2img_interrupt');
|
generateOnRepeat('#img2img_generate', '#img2img_interrupt');
|
||||||
});
|
};
|
||||||
|
|
||||||
|
appendContextMenuOption('#txt2img_generate', 'Generate forever', generateOnRepeat_txt2img);
|
||||||
|
appendContextMenuOption('#txt2img_interrupt', 'Generate forever', generateOnRepeat_txt2img);
|
||||||
|
appendContextMenuOption('#img2img_generate', 'Generate forever', generateOnRepeat_img2img);
|
||||||
|
appendContextMenuOption('#img2img_interrupt', 'Generate forever', generateOnRepeat_img2img);
|
||||||
|
|
||||||
let cancelGenerateForever = function() {
|
let cancelGenerateForever = function() {
|
||||||
clearInterval(window.generateOnRepeatInterval);
|
clearInterval(window.generateOnRepeatInterval);
|
||||||
|
|
Loading…
Reference in New Issue