aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorw-e-w <40751091+w-e-w@users.noreply.github.com>2022-10-23 16:46:54 +0900
committerAUTOMATIC1111 <16777216c@gmail.com>2022-10-23 12:34:16 +0300
commit696cb33e50faf3f37859ebfba70fff902f46b8fb (patch)
treec139e2fbb2eb489d0a192e7f5c4b98fe40a75ad2
parent1ef32c8b8fa3e16a1e7b287eb19d4fc943d1f2a5 (diff)
after initial launch, disable --autolaunch for subsequent restarts
-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)