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
8aa51f68
Commit
8aa51f68
authored
Nov 21, 2023
by
AUTOMATIC1111
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix [Bug]: (Dev Branch) Placing "Dimensions" first in "ui_reorder_list" prevents start #14047
parent
5f36f6ab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
modules/ui.py
modules/ui.py
+6
-6
No files found.
modules/ui.py
View file @
8aa51f68
...
...
@@ -635,12 +635,6 @@ def create_ui():
scale_by
.
release
(
**
on_change_args
)
button_update_resize_to
.
click
(
**
on_change_args
)
# the code below is meant to update the resolution label after the image in the image selection UI has changed.
# as it is now the event keeps firing continuously for inpaint edits, which ruins the page with constant requests.
# I assume this must be a gradio bug and for now we'll just do it for non-inpaint inputs.
for
component
in
[
init_img
,
sketch
]:
component
.
change
(
fn
=
lambda
:
None
,
_js
=
"updateImg2imgResizeToTextAfterChangingImage"
,
inputs
=
[],
outputs
=
[],
show_progress
=
False
)
tab_scale_to
.
select
(
fn
=
lambda
:
0
,
inputs
=
[],
outputs
=
[
selected_scale_tab
])
tab_scale_by
.
select
(
fn
=
lambda
:
1
,
inputs
=
[],
outputs
=
[
selected_scale_tab
])
...
...
@@ -701,6 +695,12 @@ def create_ui():
if
category
not
in
{
"accordions"
}:
scripts
.
scripts_img2img
.
setup_ui_for_section
(
category
)
# the code below is meant to update the resolution label after the image in the image selection UI has changed.
# as it is now the event keeps firing continuously for inpaint edits, which ruins the page with constant requests.
# I assume this must be a gradio bug and for now we'll just do it for non-inpaint inputs.
for
component
in
[
init_img
,
sketch
]:
component
.
change
(
fn
=
lambda
:
None
,
_js
=
"updateImg2imgResizeToTextAfterChangingImage"
,
inputs
=
[],
outputs
=
[],
show_progress
=
False
)
def
select_img2img_tab
(
tab
):
return
gr
.
update
(
visible
=
tab
in
[
2
,
3
,
4
]),
gr
.
update
(
visible
=
tab
==
3
),
...
...
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