Skip to content

Commit c98cb0f

Browse files
committed
amend previous commit to work in a proper fashion when saving previews
1 parent 35419b2 commit c98cb0f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/ui_extra_networks.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,11 @@ def tab_name_score(name):
9898
def create_ui(container, button, tabname):
9999
ui = ExtraNetworksUi()
100100
ui.pages = []
101-
ui.stored_extra_pages = extra_pages.copy()
101+
ui.stored_extra_pages = pages_in_preferred_order(extra_pages.copy())
102102
ui.tabname = tabname
103103

104104
with gr.Tabs(elem_id=tabname+"_extra_tabs") as tabs:
105-
for page in pages_in_preferred_order(ui.stored_extra_pages):
105+
for page in ui.stored_extra_pages:
106106
with gr.Tab(page.title):
107107
page_elem = gr.HTML(page.create_html(ui.tabname))
108108
ui.pages.append(page_elem)

0 commit comments

Comments
 (0)