Run black and minor fix. See #1990.

This commit is contained in:
Dion Moult
2022-10-19 09:17:37 +11:00
parent ec1fbabd00
commit 159e2ca779
2 changed files with 278 additions and 276 deletions
+5 -4
View File
@@ -139,11 +139,12 @@ def prop_with_search(layout, data, prop_name, **kwargs):
except KeyError:
# TODO : support attributes, pset, etc.
pass
op_row = row.row(align=True)
url = docs.get("spec_url", "")
url_op = op_row.operator("bim.open_webbrowser", icon="URL", text="")
url_op.url = url
op_row.enabled = bool(url)
if url:
op_row = row.row(align=True)
url_op = op_row.operator("bim.open_webbrowser", icon="INFO", text="")
url_op.url = url
op_row.enabled = bool(url)
def get_enum_items(data, prop_name, context):