mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +00:00
fix open_web_browser operator
This commit is contained in:
@@ -63,4 +63,6 @@ class OpenWebBrowser(bpy.types.Operator):
|
||||
bl_description = "Open the web UI base URL in your Web Browser"
|
||||
|
||||
def execute(self, context):
|
||||
core.open_web_browser(tool.Web)
|
||||
port = context.scene.WebProperties.webserver_port
|
||||
core.open_web_browser(tool.Web, port)
|
||||
return {"FINISHED"}
|
||||
|
||||
@@ -18,5 +18,5 @@ def kill_websocket_server(web):
|
||||
web.kill_websocket_server()
|
||||
|
||||
|
||||
def open_web_browser(web):
|
||||
web.open_web_browser()
|
||||
def open_web_browser(web, port):
|
||||
web.open_web_browser(port)
|
||||
|
||||
Reference in New Issue
Block a user