mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-04-05 20:29:02 +08:00
fix defaults settings page breaking when any of main UI tabs are hidden
This commit is contained in:
parent
e004384e46
commit
ac1abf3de6
@ -1279,11 +1279,8 @@ def create_ui():
|
|||||||
with gr.TabItem(label, id=ifid, elem_id=f"tab_{ifid}"):
|
with gr.TabItem(label, id=ifid, elem_id=f"tab_{ifid}"):
|
||||||
interface.render()
|
interface.render()
|
||||||
|
|
||||||
for interface, _label, ifid in interfaces:
|
if ifid not in ["extensions", "settings"]:
|
||||||
if ifid in ["extensions", "settings"]:
|
loadsave.add_block(interface, ifid)
|
||||||
continue
|
|
||||||
|
|
||||||
loadsave.add_block(interface, ifid)
|
|
||||||
|
|
||||||
loadsave.add_component(f"webui/Tabs@{tabs.elem_id}", tabs)
|
loadsave.add_component(f"webui/Tabs@{tabs.elem_id}", tabs)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user