aboutsummaryrefslogtreecommitdiffstats
path: root/webui.py
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2023-06-05 17:57:31 +0000
committerGitHub <noreply@github.com>2023-06-05 17:57:31 +0000
commit0895c2369cdb795acd0de072acf426c4b54fedc5 (patch)
treea2755d72540813fb951228959e892aedbd1e8ab5 /webui.py
parente89a248e2ef7a11d7e5026eef221e2ef759a938f (diff)
parentc2808f3040babbb5b9456d15aa2a9354c1c64d23 (diff)
downloadstable-diffusion-webui-gfx803-0895c2369cdb795acd0de072acf426c4b54fedc5.tar.gz
stable-diffusion-webui-gfx803-0895c2369cdb795acd0de072acf426c4b54fedc5.tar.bz2
stable-diffusion-webui-gfx803-0895c2369cdb795acd0de072acf426c4b54fedc5.zip
Merge pull request #11037 from AUTOMATIC1111/restart-autolaunch
fix rework-disable-autolaunch for new restart method
Diffstat (limited to 'webui.py')
-rw-r--r--webui.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/webui.py b/webui.py
index 254fada3..136d036d 100644
--- a/webui.py
+++ b/webui.py
@@ -396,7 +396,7 @@ def webui():
ssl_verify=cmd_opts.disable_tls_verify,
debug=cmd_opts.gradio_debug,
auth=gradio_auth_creds,
- inbrowser=cmd_opts.autolaunch,
+ inbrowser=cmd_opts.autolaunch and os.getenv('SD_WEBUI_RESTARTING ') != '1',
prevent_thread_lock=True,
allowed_paths=cmd_opts.gradio_allowed_path,
app_kwargs={