diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-08-05 06:17:36 +0000 |
---|---|---|
committer | AUTOMATIC1111 <16777216c@gmail.com> | 2023-08-05 06:17:36 +0000 |
commit | ad510b2cd312b554f641084a375038ead4c5149c (patch) | |
tree | 8876a61717510299673ead9ae5d6ba52da90c590 | |
parent | c74c708ed8c422bf7ca1f388a3ee772c7d1e4ddd (diff) | |
download | stable-diffusion-webui-gfx803-ad510b2cd312b554f641084a375038ead4c5149c.tar.gz stable-diffusion-webui-gfx803-ad510b2cd312b554f641084a375038ead4c5149c.tar.bz2 stable-diffusion-webui-gfx803-ad510b2cd312b554f641084a375038ead4c5149c.zip |
fix refresh button for styles
-rw-r--r-- | modules/ui_common.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/ui_common.py b/modules/ui_common.py index 1dda1627..303af9cd 100644 --- a/modules/ui_common.py +++ b/modules/ui_common.py @@ -239,7 +239,7 @@ def create_refresh_button(refresh_component, refresh_method, refreshed_args, ele for comp in refresh_components:
setattr(comp, k, v)
- return (gr.update(**(args or {})) for _ in refresh_components) if len(refresh_components) > 1 else gr.update(**(args or {}))
+ return [gr.update(**(args or {})) for _ in refresh_components] if len(refresh_components) > 1 else gr.update(**(args or {}))
refresh_button = ToolButton(value=refresh_symbol, elem_id=elem_id, tooltip=f"{label}: refresh" if label else "Refresh")
refresh_button.click(
|