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
fccd0b00
Commit
fccd0b00
authored
Jan 03, 2024
by
w-e-w
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reduce unnecessary re-indexing extra networks dir
parent
e4dcdcc9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
modules/ui_extra_networks.py
modules/ui_extra_networks.py
+6
-6
No files found.
modules/ui_extra_networks.py
View file @
fccd0b00
...
@@ -417,21 +417,21 @@ def create_ui(interface: gr.Blocks, unrelated_tabs, tabname):
...
@@ -417,21 +417,21 @@ def create_ui(interface: gr.Blocks, unrelated_tabs, tabname):
dropdown_sort
.
change
(
fn
=
lambda
:
None
,
_js
=
"function(){ applyExtraNetworkSort('"
+
tabname
+
"'); }"
)
dropdown_sort
.
change
(
fn
=
lambda
:
None
,
_js
=
"function(){ applyExtraNetworkSort('"
+
tabname
+
"'); }"
)
def
create_html
():
ui
.
pages_contents
=
[
pg
.
create_html
(
ui
.
tabname
)
for
pg
in
ui
.
stored_extra_pages
]
def
pages_html
():
def
pages_html
():
if
not
ui
.
pages_contents
:
if
not
ui
.
pages_contents
:
return
refresh
()
create_html
()
return
ui
.
pages_contents
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
()
create_html
()
ui
.
pages_contents
=
[
pg
.
create_html
(
ui
.
tabname
)
for
pg
in
ui
.
stored_extra_pages
]
return
ui
.
pages_contents
return
ui
.
pages_contents
interface
.
load
(
fn
=
pages_html
,
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