Skip to content

Commit

Permalink
make it impossible to press the restore progress button after pressin…
Browse files Browse the repository at this point in the history
…g it once
  • Loading branch information
AUTOMATIC1111 committed May 1, 2023
1 parent f15b7e5 commit 67f5c2a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions javascript/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,8 @@ function submit_img2img(){
}

function restoreProgressTxt2img(x){
showRestoreProgressButton("txt2img", false)

id = localStorage.getItem("txt2img_task_id")

if(id) {
Expand All @@ -219,6 +221,8 @@ function restoreProgressTxt2img(x){
return [id]
}
function restoreProgressImg2img(x){
showRestoreProgressButton("img2img", false)

id = localStorage.getItem("img2img_task_id")

if(id) {
Expand Down

0 comments on commit 67f5c2a

Please sign in to comment.