aboutsummaryrefslogtreecommitdiff
path: root/webui.py
diff options
context:
space:
mode:
author不会画画的中医不是好程序员 <yfszzx@gmail.com>2022-10-24 14:09:27 +0800
committerGitHub <noreply@github.com>2022-10-24 14:09:27 +0800
commit68931242cf66ec34d2e911400b9c9b6defc602e0 (patch)
treed966eaf5a4acfd3f7eebebe5bf28f20b43168b94 /webui.py
parentf132923d5f8f7a7e3b47b8a60b0ec7750d6d2fad (diff)
parente9a410b5357612f63528015c5533c2185dcff92e (diff)
Merge branch 'AUTOMATIC1111:master' into Inspiron
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 b5dbc6ad..a0f3757f 100644
--- a/webui.py
+++ b/webui.py
@@ -139,6 +139,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)