forked from extern/easydiffusion
Allow configuring whether the browser is opened by default
This commit is contained in:
parent
0cb2f19e29
commit
36846618ec
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user