Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
Stable Diffusion Webui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
novelai-storage
Stable Diffusion Webui
Commits
3d15e58b
Commit
3d15e58b
authored
Oct 16, 2023
by
Anthony Fu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: refactor
parent
8aa13d5d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
7 deletions
+13
-7
modules/shared_state.py
modules/shared_state.py
+6
-6
modules/ui.py
modules/ui.py
+7
-1
No files found.
modules/shared_state.py
View file @
3d15e58b
...
...
@@ -77,12 +77,12 @@ class State:
log
.
info
(
"Received skip request"
)
def
interrupt
(
self
):
if
shared
.
opts
.
interrupt_after_current
and
self
.
job_count
>
1
:
self
.
interrupted_next
=
True
log
.
info
(
"Received interrupt request, interrupt after current job"
)
else
:
self
.
interrupted
=
True
log
.
info
(
"Received interrupt request
"
)
self
.
interrupted
=
True
log
.
info
(
"Received interrupt request"
)
def
interrupt_next
(
self
)
:
self
.
interrupted_next
=
True
log
.
info
(
"Received interrupt request, interrupt after current job
"
)
def
nextjob
(
self
):
if
shared
.
opts
.
live_previews_enable
and
shared
.
opts
.
show_progress_every_n_steps
==
-
1
:
...
...
modules/ui.py
View file @
3d15e58b
...
...
@@ -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
=
[],
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment