aboutsummaryrefslogtreecommitdiffstats
path: root/modules/ui_toprow.py
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2024-01-01 13:50:59 +0000
committerAUTOMATIC1111 <16777216c@gmail.com>2024-01-01 13:50:59 +0000
commit0aa7c53c0b9469849377aff83f43c9f75c19b3fa (patch)
tree8fddf13dd7d98d1ae8615e7c216558170203876b /modules/ui_toprow.py
parent2a7ad70db5447dd1d5915b2b59715ee74f670119 (diff)
downloadstable-diffusion-webui-gfx803-0aa7c53c0b9469849377aff83f43c9f75c19b3fa.tar.gz
stable-diffusion-webui-gfx803-0aa7c53c0b9469849377aff83f43c9f75c19b3fa.tar.bz2
stable-diffusion-webui-gfx803-0aa7c53c0b9469849377aff83f43c9f75c19b3fa.zip
fix borked merge, rename fields to better match what they do, change setting default to true for #13653
Diffstat (limited to 'modules/ui_toprow.py')
-rw-r--r--modules/ui_toprow.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/modules/ui_toprow.py b/modules/ui_toprow.py
index 9caf8faa..1abc9117 100644
--- a/modules/ui_toprow.py
+++ b/modules/ui_toprow.py
@@ -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=[],
)