Generate Forever during generation

Generate Forever during generation
This commit is contained in:
w-e-w 2023-06-08 17:48:45 +09:00
parent cf28aed1a7
commit 46e4777fd6

View File

@ -148,12 +148,18 @@ var addContextMenuEventListener = initResponse[2];
500);
};
appendContextMenuOption('#txt2img_generate', 'Generate forever', function() {
let generateOnRepeat_txt2img = function() {
generateOnRepeat('#txt2img_generate', '#txt2img_interrupt');
});
appendContextMenuOption('#img2img_generate', 'Generate forever', function() {
};
let generateOnRepeat_img2img = function() {
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() {
clearInterval(window.generateOnRepeatInterval);