add visual progress for extension installation from URL

This commit is contained in:
AUTOMATIC 2023-05-16 07:59:43 +03:00
parent a47abe1b7b
commit 3d76eabbca
2 changed files with 2 additions and 3 deletions

View File

@ -3,7 +3,6 @@ import sys
import threading import threading
import traceback import traceback
import time
import git import git
from modules import shared from modules import shared

View File

@ -593,9 +593,9 @@ def create_ui():
install_result = gr.HTML(elem_id="extension_install_result") install_result = gr.HTML(elem_id="extension_install_result")
install_button.click( install_button.click(
fn=modules.ui.wrap_gradio_call(install_extension_from_url, extra_outputs=[gr.update()]), fn=modules.ui.wrap_gradio_call(lambda *args: [gr.update(), *install_extension_from_url(*args)], extra_outputs=[gr.update(), gr.update()]),
inputs=[install_dirname, install_url, install_branch], inputs=[install_dirname, install_url, install_branch],
outputs=[extensions_table, install_result], outputs=[install_url, extensions_table, install_result],
) )
with gr.TabItem("Backup/Restore"): with gr.TabItem("Backup/Restore"):