mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 01:04:32 +02:00
Use True/False instead of True/None
This commit is contained in:
+1
-1
@@ -19,7 +19,7 @@ class OptionInfo:
|
||||
onchange=None,
|
||||
section=None,
|
||||
refresh=None,
|
||||
folder=None,
|
||||
folder=False,
|
||||
submit=None,
|
||||
comment_before='',
|
||||
comment_after='',
|
||||
|
||||
@@ -84,7 +84,7 @@ def create_setting_component(key, is_quicksettings=False):
|
||||
with gr.Row():
|
||||
res = comp(label=info.label, value=fun(), elem_id=elem_id, **args)
|
||||
ui_common.create_refresh_button(res, info.refresh, info.component_args, f"settings_{key}_refresh")
|
||||
elif info.folder is not None:
|
||||
elif info.folder:
|
||||
with gr.Row():
|
||||
res = comp(label=info.label, value=fun(), elem_id=elem_id, elem_classes="folder-selector", **args)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user