aboutsummaryrefslogtreecommitdiffstats
path: root/webui.py
diff options
context:
space:
mode:
authorw-e-w <40751091+w-e-w@users.noreply.github.com>2022-10-23 07:46:54 +0000
committerAUTOMATIC1111 <16777216c@gmail.com>2022-10-23 09:34:16 +0000
commit696cb33e50faf3f37859ebfba70fff902f46b8fb (patch)
treec139e2fbb2eb489d0a192e7f5c4b98fe40a75ad2 /webui.py
parent1ef32c8b8fa3e16a1e7b287eb19d4fc943d1f2a5 (diff)
downloadstable-diffusion-webui-gfx803-696cb33e50faf3f37859ebfba70fff902f46b8fb.tar.gz
stable-diffusion-webui-gfx803-696cb33e50faf3f37859ebfba70fff902f46b8fb.tar.bz2
stable-diffusion-webui-gfx803-696cb33e50faf3f37859ebfba70fff902f46b8fb.zip
after initial launch, disable --autolaunch for subsequent restarts
Diffstat (limited to 'webui.py')
-rw-r--r--webui.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/webui.py b/webui.py
index b1deca1b..a742c17d 100644
--- a/webui.py
+++ b/webui.py
@@ -135,6 +135,8 @@ def webui():
inbrowser=cmd_opts.autolaunch,
prevent_thread_lock=True
)
+ # after initial launch, disable --autolaunch for subsequent restarts
+ cmd_opts.autolaunch = False
app.add_middleware(GZipMiddleware, minimum_size=1000)