diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2024-01-20 07:26:52 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-20 07:26:52 +0000 |
commit | cfa326bbccce2ebd14d8d1809baf536c4a173998 (patch) | |
tree | 3e650537f14b65c9123d3e9a9382ef3c5a12e914 | |
parent | 7581da5d9239b116914c35cc9ae4698d205a593c (diff) | |
parent | 14b9762bcab41fe0f7411498d9d3ffdc69ea1dda (diff) | |
download | stable-diffusion-webui-gfx803-cfa326bbccce2ebd14d8d1809baf536c4a173998.tar.gz stable-diffusion-webui-gfx803-cfa326bbccce2ebd14d8d1809baf536c4a173998.tar.bz2 stable-diffusion-webui-gfx803-cfa326bbccce2ebd14d8d1809baf536c4a173998.zip |
Merge pull request #14659 from AUTOMATIC1111/immediately-stop-on-second-interrupt
immediately stop on second interrupt
-rw-r--r-- | modules/ui_toprow.py | 3 |
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()
|