Fix #4085. Classification reference URIs now have a button you can jump to that link.

This commit is contained in:
Dion Moult
2023-12-08 16:35:46 +11:00
parent 7c89d072e2
commit f9fef4f5f6
@@ -239,6 +239,8 @@ class ReferenceUI:
name = reference["Identification"] or "No Identification"
row.label(text=name, icon="ASSET_MANAGER")
row.label(text=reference["Name"] or "")
if reference["Location"]:
row.operator("bim.open_uri", icon="URL", text="").uri = reference["Location"]
if not self.props.active_reference_id:
op = row.operator("bim.enable_editing_classification_reference", text="", icon="GREASEPENCIL")
op.reference = reference["id"]