mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2024-06-07 21:20:49 +00:00
immediately stop on second interrupt
Revert "immediately stop on second interrupt" This reverts commit ab409072a1f2a9c911a63aee98a6b42081803cdc. immediately stop on second interrupt
This commit is contained in:
parent
cb5b335acd
commit
14b9762bca
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user