fix missing paths

This commit is contained in:
Vladimir Mandic
2023-09-13 11:26:28 -04:00
parent a7755ac6d8
commit 08f594a54b
6 changed files with 61 additions and 33 deletions
+6 -2
View File
@@ -929,11 +929,15 @@ def create_ui(startup_timer = None):
if info.refresh is not None:
if is_quicksettings:
res = comp(label=info.label, value=fun(), elem_id=elem_id, **args)
create_refresh_button(res, info.refresh, info.component_args, f"refresh_{key}")
ui_common.create_refresh_button(res, info.refresh, info.component_args, f"refresh_{key}")
else:
with FormRow():
res = comp(label=info.label, value=fun(), elem_id=elem_id, **args)
create_refresh_button(res, info.refresh, info.component_args, f"refresh_{key}")
ui_common.create_refresh_button(res, info.refresh, info.component_args, f"refresh_{key}")
elif info.folder is not None:
with FormRow():
res = comp(label=info.label, value=fun(), elem_id=elem_id, elem_classes="folder-selector", **args)
ui_common.create_browse_button(res, f"folder_{key}")
else:
try:
res = comp(label=info.label, value=fun(), elem_id=elem_id, **args)