diff options
author | w-e-w <40751091+w-e-w@users.noreply.github.com> | 2022-10-23 16:46:54 +0900 |
---|---|---|
committer | AUTOMATIC1111 <16777216c@gmail.com> | 2022-10-23 12:34:16 +0300 |
commit | 696cb33e50faf3f37859ebfba70fff902f46b8fb (patch) | |
tree | c139e2fbb2eb489d0a192e7f5c4b98fe40a75ad2 /webui.py | |
parent | 1ef32c8b8fa3e16a1e7b287eb19d4fc943d1f2a5 (diff) |
after initial launch, disable --autolaunch for subsequent restarts
Diffstat (limited to 'webui.py')
-rw-r--r-- | webui.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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)
|