Skip to content

Commit

Permalink
fix defaults settings page breaking when any of main UI tabs are hidden
Browse files Browse the repository at this point in the history
  • Loading branch information
AUTOMATIC1111 committed Aug 26, 2023
1 parent f3a1027 commit bb90b0f
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions modules/ui.py
Expand Up @@ -1279,11 +1279,8 @@ def get_textual_inversion_template_names():
with gr.TabItem(label, id=ifid, elem_id=f"tab_{ifid}"):
interface.render()

for interface, _label, ifid in interfaces:
if ifid in ["extensions", "settings"]:
continue

loadsave.add_block(interface, ifid)
if ifid not in ["extensions", "settings"]:
loadsave.add_block(interface, ifid)

loadsave.add_component(f"webui/Tabs@{tabs.elem_id}", tabs)

Expand Down

0 comments on commit bb90b0f

Please sign in to comment.