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
ea49bb06
Commit
ea49bb06
authored
Jul 12, 2023
by
w-e-w
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use submit blur for quick settings textbox
parent
e5ca9877
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
7 deletions
+14
-7
modules/ui_settings.py
modules/ui_settings.py
+14
-7
No files found.
modules/ui_settings.py
View file @
ea49bb06
...
...
@@ -260,13 +260,20 @@ class UiSettings:
component
=
self
.
component_dict
[
k
]
info
=
opts
.
data_labels
[
k
]
change_handler
=
component
.
release
if
hasattr
(
component
,
'release'
)
else
component
.
change
change_handler
(
fn
=
lambda
value
,
k
=
k
:
self
.
run_settings_single
(
value
,
key
=
k
),
inputs
=
[
component
],
outputs
=
[
component
,
self
.
text_settings
],
show_progress
=
info
.
refresh
is
not
None
,
)
if
isinstance
(
component
,
gr
.
Textbox
):
methods
=
[
component
.
submit
,
component
.
blur
]
elif
hasattr
(
component
,
'release'
):
methods
=
[
component
.
release
]
else
:
methods
=
[
component
.
change
]
for
method
in
methods
:
method
(
fn
=
lambda
value
,
k
=
k
:
self
.
run_settings_single
(
value
,
key
=
k
),
inputs
=
[
component
],
outputs
=
[
component
,
self
.
text_settings
],
show_progress
=
info
.
refresh
is
not
None
,
)
button_set_checkpoint
=
gr
.
Button
(
'Change checkpoint'
,
elem_id
=
'change_checkpoint'
,
visible
=
False
)
button_set_checkpoint
.
click
(
...
...
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