after initial launch, disable --autolaunch for subsequent restarts

This commit is contained in:
w-e-w 2022-10-23 16:46:54 +09:00 committed by AUTOMATIC1111
parent 1ef32c8b8f
commit 696cb33e50

View file

@ -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)