diff options
author | AUTOMATIC <16777216c@gmail.com> | 2022-09-18 08:14:42 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2022-09-18 08:14:42 +0000 |
commit | 3f29aa791bceea0b0de99263dd0a7f08c0551549 (patch) | |
tree | 5eb9b04951fbb6b50ea0afe134bac1b1330bec86 /javascript/progressbar.js | |
parent | b273458d2d37ec59f61d5008bbfb7be2c3013850 (diff) | |
download | stable-diffusion-webui-gfx803-3f29aa791bceea0b0de99263dd0a7f08c0551549.tar.gz stable-diffusion-webui-gfx803-3f29aa791bceea0b0de99263dd0a7f08c0551549.tar.bz2 stable-diffusion-webui-gfx803-3f29aa791bceea0b0de99263dd0a7f08c0551549.zip |
altered progressbar to not rely on first progress request coming after the job has started; may help with broken progressbar some people say they have
Diffstat (limited to 'javascript/progressbar.js')
-rw-r--r-- | javascript/progressbar.js | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/javascript/progressbar.js b/javascript/progressbar.js index 1fcd544c..065f259b 100644 --- a/javascript/progressbar.js +++ b/javascript/progressbar.js @@ -24,15 +24,23 @@ onUiUpdate(function(){ img2img_preview.style.height = img2img_gallery.clientHeight + "px" } - window.setTimeout(requestProgress, 500) + window.setTimeout(requestMoreProgress, 500) }); mutationObserver.observe( progressbar, { childList:true, subtree:true }) } }) -function requestProgress(){ +function requestMoreProgress(){ btn = gradioApp().getElementById("check_progress"); if(btn==null) return; btn.click(); } + +function requestProgress(){ + btn = gradioApp().getElementById("check_progress_initial"); + if(btn==null) return; + + btn.click(); +} + |