Use True/False instead of True/None

This commit is contained in:
awsr
2025-12-19 00:22:57 -08:00
parent f20591ce5e
commit 878f2f5aa6
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ class OptionInfo:
onchange=None,
section=None,
refresh=None,
folder=None,
folder=False,
submit=None,
comment_before='',
comment_after='',
+1 -1
View File
@@ -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: