mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-04-27 07:10:56 -07:00
Simplify a bunch of len(x) > 0/len(x) == 0 style expressions
This commit is contained in:
parent
3e995778fc
commit
51864790fd
25 changed files with 47 additions and 48 deletions
|
|
@ -21,7 +21,7 @@ class ExtraOptionsSection(scripts.Script):
|
|||
self.setting_names = []
|
||||
|
||||
with gr.Blocks() as interface:
|
||||
with gr.Accordion("Options", open=False) if shared.opts.extra_options_accordion and len(shared.opts.extra_options) > 0 else gr.Group(), gr.Row():
|
||||
with gr.Accordion("Options", open=False) if shared.opts.extra_options_accordion and shared.opts.extra_options else gr.Group(), gr.Row():
|
||||
for setting_name in shared.opts.extra_options:
|
||||
with FormColumn():
|
||||
comp = ui_settings.create_setting_component(setting_name)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue