aboutsummaryrefslogtreecommitdiffstats
path: root/modules/ui_toprow.py
diff options
context:
space:
mode:
authorArturo Albacete <aalbacetef@gmail.com>2024-01-20 20:15:57 +0000
committerArturo Albacete <aalbacetef@gmail.com>2024-01-20 20:15:57 +0000
commitd0b65e148bdc3d35f3f8ee38310ba55152ab4880 (patch)
tree1485c4f2df143b4c3d7e958a232dc9ddb2205280 /modules/ui_toprow.py
parent315e40a49c32438551ed6b66138acdf664ecdbc8 (diff)
parentf939bce845ae07536b1c920618743af83e0b01ec (diff)
downloadstable-diffusion-webui-gfx803-d0b65e148bdc3d35f3f8ee38310ba55152ab4880.tar.gz
stable-diffusion-webui-gfx803-d0b65e148bdc3d35f3f8ee38310ba55152ab4880.tar.bz2
stable-diffusion-webui-gfx803-d0b65e148bdc3d35f3f8ee38310ba55152ab4880.zip
merge dev
Diffstat (limited to 'modules/ui_toprow.py')
-rw-r--r--modules/ui_toprow.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/ui_toprow.py b/modules/ui_toprow.py
index 1abc9117..fbe705be 100644
--- a/modules/ui_toprow.py
+++ b/modules/ui_toprow.py
@@ -107,8 +107,9 @@ class Toprow:
)
def interrupt_function():
- if shared.state.job_count > 1 and shared.opts.interrupt_after_current:
+ if not shared.state.stopping_generation and shared.state.job_count > 1 and shared.opts.interrupt_after_current:
shared.state.stop_generating()
+ gr.Info("Generation will stop after finishing this image, click again to stop immediately.")
else:
shared.state.interrupt()