mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-08-04 03:10:21 +00:00
fix borked merge, rename fields to better match what they do, change setting default to true for #13653
This commit is contained in:
@@ -106,8 +106,14 @@ class Toprow:
|
||||
outputs=[],
|
||||
)
|
||||
|
||||
def interrupt_function():
|
||||
if shared.state.job_count > 1 and shared.opts.interrupt_after_current:
|
||||
shared.state.stop_generating()
|
||||
else:
|
||||
shared.state.interrupt()
|
||||
|
||||
self.interrupt.click(
|
||||
fn=lambda: shared.state.interrupt(),
|
||||
fn=interrupt_function,
|
||||
inputs=[],
|
||||
outputs=[],
|
||||
)
|
||||
|
Reference in New Issue
Block a user