mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-27 10:51:13 +00:00
add a console toggle to error message section
This commit is contained in:
@@ -122,7 +122,7 @@ if sys.modules.get("bpy", None):
|
|||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
layout.label(text="BlenderBIM could not load.", icon="ERROR")
|
layout.label(text="BlenderBIM could not load.", icon="ERROR")
|
||||||
layout.label(text="View the console for full logs.", icon="CONSOLE")
|
layout.operator("wm.console_toggle", text="View the console for full logs.", icon="CONSOLE")
|
||||||
box = layout.box()
|
box = layout.box()
|
||||||
info = get_debug_info()
|
info = get_debug_info()
|
||||||
py = ".".join(info["python_version"].split(".")[0:2])
|
py = ".".join(info["python_version"].split(".")[0:2])
|
||||||
|
|||||||
@@ -410,7 +410,7 @@ class BIM_PT_tabs(Panel):
|
|||||||
row = box.row(align=True)
|
row = box.row(align=True)
|
||||||
row.label(text="BlenderBIM experienced an error :(", icon="ERROR")
|
row.label(text="BlenderBIM experienced an error :(", icon="ERROR")
|
||||||
row.operator("bim.close_error", text="", icon="CANCEL")
|
row.operator("bim.close_error", text="", icon="CANCEL")
|
||||||
box.label(text="View the console for full logs.", icon="CONSOLE")
|
box.operator("wm.console_toggle", text="View the console for full logs.", icon="CONSOLE")
|
||||||
box.operator("bim.copy_debug_information", text="Copy Error Message To Clipboard")
|
box.operator("bim.copy_debug_information", text="Copy Error Message To Clipboard")
|
||||||
op = box.operator("bim.open_uri", text="How Can I Fix This?")
|
op = box.operator("bim.open_uri", text="How Can I Fix This?")
|
||||||
op.uri = "https://docs.blenderbim.org/users/troubleshooting.html"
|
op.uri = "https://docs.blenderbim.org/users/troubleshooting.html"
|
||||||
|
|||||||
Reference in New Issue
Block a user