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
57d61de2
Commit
57d61de2
authored
Jul 16, 2023
by
AUTOMATIC1111
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix unneded reload from disk
parent
5ef75903
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
modules/ui_extra_networks.py
modules/ui_extra_networks.py
+7
-1
No files found.
modules/ui_extra_networks.py
View file @
57d61de2
...
@@ -393,6 +393,12 @@ def create_ui(interface: gr.Blocks, unrelated_tabs, tabname):
...
@@ -393,6 +393,12 @@ def create_ui(interface: gr.Blocks, unrelated_tabs, tabname):
for
tab
in
related_tabs
:
for
tab
in
related_tabs
:
tab
.
select
(
fn
=
lambda
:
[
gr
.
update
(
visible
=
True
)
for
_
in
range
(
5
)],
inputs
=
[],
outputs
=
[
edit_search
,
edit_search
,
dropdown_sort
,
button_sortorder
,
button_refresh
],
show_progress
=
False
)
tab
.
select
(
fn
=
lambda
:
[
gr
.
update
(
visible
=
True
)
for
_
in
range
(
5
)],
inputs
=
[],
outputs
=
[
edit_search
,
edit_search
,
dropdown_sort
,
button_sortorder
,
button_refresh
],
show_progress
=
False
)
def
pages_html
():
if
not
ui
.
pages_contents
:
return
refresh
()
return
ui
.
pages_contents
def
refresh
():
def
refresh
():
for
pg
in
ui
.
stored_extra_pages
:
for
pg
in
ui
.
stored_extra_pages
:
pg
.
refresh
()
pg
.
refresh
()
...
@@ -401,7 +407,7 @@ def create_ui(interface: gr.Blocks, unrelated_tabs, tabname):
...
@@ -401,7 +407,7 @@ def create_ui(interface: gr.Blocks, unrelated_tabs, tabname):
return
ui
.
pages_contents
return
ui
.
pages_contents
interface
.
load
(
fn
=
refresh
,
inputs
=
[],
outputs
=
[
*
ui
.
pages
])
interface
.
load
(
fn
=
pages_html
,
inputs
=
[],
outputs
=
[
*
ui
.
pages
])
button_refresh
.
click
(
fn
=
refresh
,
inputs
=
[],
outputs
=
ui
.
pages
)
button_refresh
.
click
(
fn
=
refresh
,
inputs
=
[],
outputs
=
ui
.
pages
)
return
ui
return
ui
...
...
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