From 67f5c2abb0a9293245de5f00f0b8cd82e2a7cdd0 Mon Sep 17 00:00:00 2001 From: AUTOMATIC <16777216c@gmail.com> Date: Mon, 1 May 2023 13:58:10 +0300 Subject: make it impossible to press the restore progress button after pressing it once --- javascript/ui.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'javascript/ui.js') diff --git a/javascript/ui.js b/javascript/ui.js index e14b33f5..42de9114 100644 --- a/javascript/ui.js +++ b/javascript/ui.js @@ -208,6 +208,8 @@ function submit_img2img(){ } function restoreProgressTxt2img(x){ + showRestoreProgressButton("txt2img", false) + id = localStorage.getItem("txt2img_task_id") if(id) { @@ -219,6 +221,8 @@ function restoreProgressTxt2img(x){ return [id] } function restoreProgressImg2img(x){ + showRestoreProgressButton("img2img", false) + id = localStorage.getItem("img2img_task_id") if(id) { -- cgit v1.2.3 From 33e6bc34ff4f826060489f0f76e6653672c8f1aa Mon Sep 17 00:00:00 2001 From: w-e-w <40751091+w-e-w@users.noreply.github.com> Date: Mon, 1 May 2023 19:59:52 +0900 Subject: restore_progress fix id wrong type --- javascript/ui.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'javascript/ui.js') diff --git a/javascript/ui.js b/javascript/ui.js index e14b33f5..33a48b9a 100644 --- a/javascript/ui.js +++ b/javascript/ui.js @@ -216,7 +216,7 @@ function restoreProgressTxt2img(x){ }, null, 0) } - return [id] + return id } function restoreProgressImg2img(x){ id = localStorage.getItem("img2img_task_id") @@ -227,7 +227,7 @@ function restoreProgressImg2img(x){ }, null, 0) } - return [id] + return id } -- cgit v1.2.3