mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-20 06:58:56 +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"
|
bl_description = "Open the web UI base URL in your Web Browser"
|
||||||
|
|
||||||
def execute(self, context):
|
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()
|
web.kill_websocket_server()
|
||||||
|
|
||||||
|
|
||||||
def open_web_browser(web):
|
def open_web_browser(web, port):
|
||||||
web.open_web_browser()
|
web.open_web_browser(port)
|
||||||
|
|||||||
Reference in New Issue
Block a user