mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-12-15 06:41:00 -08:00
make reloading UI scripts optional when doing Reload UI, and off by default
This commit is contained in:
parent
79cbc92abf
commit
daa1b33247
2 changed files with 3 additions and 1 deletions
|
|
@ -109,7 +109,7 @@ def initialize_rest(*, reload_script_modules=False):
|
|||
with startup_timer.subcategory("load scripts"):
|
||||
scripts.load_scripts()
|
||||
|
||||
if reload_script_modules:
|
||||
if reload_script_modules and shared.opts.enable_reloading_ui_scripts:
|
||||
for module in [module for name, module in sys.modules.items() if name.startswith("modules.ui")]:
|
||||
importlib.reload(module)
|
||||
startup_timer.record("reload script modules")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue