Skip to content

Commit

Permalink
Merge pull request #14857 from light-and-ray/refresh_extensions_list
Browse files Browse the repository at this point in the history
Button for refresh extensions list
  • Loading branch information
AUTOMATIC1111 authored Feb 9, 2024
2 parents 321b2db + 99c6c4a commit d69a794
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/ui_extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,7 @@ def create_ui():
extensions_disable_all = gr.Radio(label="Disable all extensions", choices=["none", "extra", "all"], value=shared.opts.disable_all_extensions, elem_id="extensions_disable_all")
extensions_disabled_list = gr.Text(elem_id="extensions_disabled_list", visible=False, container=False)
extensions_update_list = gr.Text(elem_id="extensions_update_list", visible=False, container=False)
refresh = gr.Button(value='Refresh', variant="compact")

html = ""

Expand All @@ -566,7 +567,8 @@ def create_ui():
with gr.Row(elem_classes="progress-container"):
extensions_table = gr.HTML('Loading...', elem_id="extensions_installed_html")

ui.load(fn=extension_table, inputs=[], outputs=[extensions_table])
ui.load(fn=extension_table, inputs=[], outputs=[extensions_table], show_progress=False)
refresh.click(fn=extension_table, inputs=[], outputs=[extensions_table], show_progress=False)

apply.click(
fn=apply_and_restart,
Expand Down

0 comments on commit d69a794

Please # to comment.