diff options
author | AUTOMATIC <16777216c@gmail.com> | 2023-01-22 08:04:02 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2023-01-22 08:04:02 +0000 |
commit | c98cb0f8ecc904666f47684e238dd022039ca16f (patch) | |
tree | 8869917f3707ac70b04c6a298f26cb18106cf21c | |
parent | 35419b274614984e2b511a6ad34f37e41481c809 (diff) | |
download | stable-diffusion-webui-gfx803-c98cb0f8ecc904666f47684e238dd022039ca16f.tar.gz stable-diffusion-webui-gfx803-c98cb0f8ecc904666f47684e238dd022039ca16f.tar.bz2 stable-diffusion-webui-gfx803-c98cb0f8ecc904666f47684e238dd022039ca16f.zip |
amend previous commit to work in a proper fashion when saving previews
-rw-r--r-- | modules/ui_extra_networks.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/ui_extra_networks.py b/modules/ui_extra_networks.py index 285c8ffe..af2b8071 100644 --- a/modules/ui_extra_networks.py +++ b/modules/ui_extra_networks.py @@ -98,11 +98,11 @@ def pages_in_preferred_order(pages): def create_ui(container, button, tabname):
ui = ExtraNetworksUi()
ui.pages = []
- ui.stored_extra_pages = extra_pages.copy()
+ ui.stored_extra_pages = pages_in_preferred_order(extra_pages.copy())
ui.tabname = tabname
with gr.Tabs(elem_id=tabname+"_extra_tabs") as tabs:
- for page in pages_in_preferred_order(ui.stored_extra_pages):
+ for page in ui.stored_extra_pages:
with gr.Tab(page.title):
page_elem = gr.HTML(page.create_html(ui.tabname))
ui.pages.append(page_elem)
|