Allow configuring whether the browser is opened by default

This commit is contained in:
cmdr2 2022-11-14 20:15:54 +05:30
parent 0cb2f19e29
commit 36846618ec

View File

@ -399,4 +399,10 @@ def update_render_threads():
update_render_threads()
# start the browser ui
def open_browser():
config = getConfig()
ui = config.get('ui', {})
if ui.get('open_browser_on_start', True):
import webbrowser; webbrowser.open('http://localhost:9000')
open_browser()