diff options
Diffstat (limited to 'modules/ui.py')
-rw-r--r-- | modules/ui.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/ui.py b/modules/ui.py index 0516c643..a4ecd41b 100644 --- a/modules/ui.py +++ b/modules/ui.py @@ -1572,7 +1572,10 @@ def create_ui(): parameters_copypaste.connect_paste_params_buttons()
with gr.Tabs(elem_id="tabs") as tabs:
+ hidden_tabs = [x.lower().strip() for x in shared.opts.hidden_tabs.split(",")]
for interface, label, ifid in interfaces:
+ if label.lower() in hidden_tabs:
+ continue
with gr.TabItem(label, id=ifid, elem_id='tab_' + ifid):
interface.render()
|