Make cancel generate forever let the current gen complete (#2206)
This commit is contained in:
parent
f98338faa8
commit
42bf5fa325
1 changed files with 0 additions and 4 deletions
|
@ -147,10 +147,6 @@ generateOnRepeatId = appendContextMenuOption('#txt2img_generate','Generate forev
|
||||||
|
|
||||||
cancelGenerateForever = function(){
|
cancelGenerateForever = function(){
|
||||||
clearInterval(window.generateOnRepeatInterval)
|
clearInterval(window.generateOnRepeatInterval)
|
||||||
let interruptbutton = gradioApp().querySelector('#txt2img_interrupt');
|
|
||||||
if(interruptbutton.offsetParent){
|
|
||||||
interruptbutton.click();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
appendContextMenuOption('#txt2img_interrupt','Cancel generate forever',cancelGenerateForever)
|
appendContextMenuOption('#txt2img_interrupt','Cancel generate forever',cancelGenerateForever)
|
||||||
|
|
Loading…
Reference in a new issue