Skip to content

Commit

Permalink
Make cancel generate forever let the current gen complete (AUTOMATIC1…
Browse files Browse the repository at this point in the history
  • Loading branch information
dfaker authored Oct 10, 2022
1 parent f98338f commit 42bf5fa
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions javascript/contextMenus.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,6 @@ generateOnRepeatId = appendContextMenuOption('#txt2img_generate','Generate forev

cancelGenerateForever = function(){
clearInterval(window.generateOnRepeatInterval)
let interruptbutton = gradioApp().querySelector('#txt2img_interrupt');
if(interruptbutton.offsetParent){
interruptbutton.click();
}
}

appendContextMenuOption('#txt2img_interrupt','Cancel generate forever',cancelGenerateForever)
Expand Down

0 comments on commit 42bf5fa

Please sign in to comment.