Update webui.py

added shared.opts.autolaunch
This commit is contained in:
brknsoul
2024-10-18 13:40:48 +10:30
committed by GitHub
parent 51f184dc22
commit a5e92e2bb3
+1 -1
View File
@@ -350,7 +350,7 @@ def webui(restart=False):
continue
logger.handlers = log.handlers
# autolaunch only on initial start
if cmd_opts.autolaunch and local_url is not None:
if shared.opts.autolaunch or cmd_opts.autolaunch and local_url is not None:
cmd_opts.autolaunch = False
shared.log.info('Launching browser')
import webbrowser