diff options
author | w-e-w <40751091+w-e-w@users.noreply.github.com> | 2024-01-16 08:08:07 +0000 |
---|---|---|
committer | w-e-w <40751091+w-e-w@users.noreply.github.com> | 2024-01-16 08:18:05 +0000 |
commit | 14b9762bcab41fe0f7411498d9d3ffdc69ea1dda (patch) | |
tree | 28d6c948d089f63b7a0f0d149572cd0805b6b8e3 /modules/ui_toprow.py | |
parent | cb5b335acddd126d4f6c990982816c06beb0d6ae (diff) | |
download | stable-diffusion-webui-gfx803-14b9762bcab41fe0f7411498d9d3ffdc69ea1dda.tar.gz stable-diffusion-webui-gfx803-14b9762bcab41fe0f7411498d9d3ffdc69ea1dda.tar.bz2 stable-diffusion-webui-gfx803-14b9762bcab41fe0f7411498d9d3ffdc69ea1dda.zip |
immediately stop on second interrupt
Revert "immediately stop on second interrupt"
This reverts commit ab409072a1f2a9c911a63aee98a6b42081803cdc.
immediately stop on second interrupt
Diffstat (limited to 'modules/ui_toprow.py')
-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()
|