Don't show install button if there's no URL to install from
This commit is contained in:
@@ -491,8 +491,9 @@ class USERPREF_PT_packages(bpy.types.Panel):
|
||||
lr2.label(text=blinfo.get('description', ""))
|
||||
lr2.enabled = False #Give name more visual weight
|
||||
|
||||
right.operator(BPKG_OT_install.bl_idname,
|
||||
text="Install").package_url=pkg.get('url', "")
|
||||
if pkg.get('url'):
|
||||
right.operator(BPKG_OT_install.bl_idname,
|
||||
text="Install").package_url=pkg.get('url')
|
||||
|
||||
def expanded():
|
||||
row1 = leftcol.row()
|
||||
|
Reference in New Issue
Block a user