diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-08-26 03:33:48 +0000 |
---|---|---|
committer | AUTOMATIC1111 <16777216c@gmail.com> | 2023-08-26 03:34:00 +0000 |
commit | bb90b0ff42ea55cbc73df15ea1ef8fd79af2e026 (patch) | |
tree | 952602ab921a56ca8587ba1c6a0f3f8ae3a099ca /modules/ui.py | |
parent | f3a1027869026710be2aaff024f3220ec3937b53 (diff) | |
download | stable-diffusion-webui-gfx803-bb90b0ff42ea55cbc73df15ea1ef8fd79af2e026.tar.gz stable-diffusion-webui-gfx803-bb90b0ff42ea55cbc73df15ea1ef8fd79af2e026.tar.bz2 stable-diffusion-webui-gfx803-bb90b0ff42ea55cbc73df15ea1ef8fd79af2e026.zip |
fix defaults settings page breaking when any of main UI tabs are hidden
Diffstat (limited to 'modules/ui.py')
-rw-r--r-- | modules/ui.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/modules/ui.py b/modules/ui.py index 9c5082c3..f4028475 100644 --- a/modules/ui.py +++ b/modules/ui.py @@ -1279,11 +1279,8 @@ def create_ui(): 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)
|