mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-08-04 11:12:35 +00:00
feat: refactor
This commit is contained in:
@@ -216,8 +216,14 @@ class Toprow:
|
||||
outputs=[],
|
||||
)
|
||||
|
||||
def interrupt_fn():
|
||||
if shared.state.job_count > 1 and shared.opts.interrupt_after_current:
|
||||
shared.state.interrupt_next()
|
||||
else:
|
||||
shared.state.interrupt()
|
||||
|
||||
self.interrupt.click(
|
||||
fn=lambda: shared.state.interrupt(),
|
||||
fn=interrupt_fn,
|
||||
inputs=[],
|
||||
outputs=[],
|
||||
)
|
||||
|
Reference in New Issue
Block a user