aboutsummaryrefslogtreecommitdiffstats
path: root/modules/shared.py
diff options
context:
space:
mode:
authorRnDMonkey <RnDMonkey@users.noreply.github.com>2022-09-24 05:09:59 +0000
committerGitHub <noreply@github.com>2022-09-24 05:09:59 +0000
commited8b8b3b8c4f5bea89a2dc32fb48c83a123a11cd (patch)
treecb26869e016f2f4207ea9c12ae98a461f374bc14 /modules/shared.py
parent7aec029423a4bba9787a16a02991bbec602433d1 (diff)
downloadstable-diffusion-webui-gfx803-ed8b8b3b8c4f5bea89a2dc32fb48c83a123a11cd.tar.gz
stable-diffusion-webui-gfx803-ed8b8b3b8c4f5bea89a2dc32fb48c83a123a11cd.tar.bz2
stable-diffusion-webui-gfx803-ed8b8b3b8c4f5bea89a2dc32fb48c83a123a11cd.zip
Fix to XY_Grid script console progress bar and other progress bar improvements (#890)
Fix to XY_Grid script console progress bar and other progress bar improvements #890
Diffstat (limited to 'modules/shared.py')
-rw-r--r--modules/shared.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/shared.py b/modules/shared.py
index 667c3441..7bad7a6d 100644
--- a/modules/shared.py
+++ b/modules/shared.py
@@ -307,6 +307,13 @@ class TotalTQDM:
self.reset()
self._tqdm.update()
+ def updateTotal(self, new_total):
+ if not opts.multiple_tqdm:
+ return
+ if self._tqdm is None:
+ self.reset()
+ self._tqdm.total=new_total
+
def clear(self):
if self._tqdm is not None:
self._tqdm.close()