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.label(text=blinfo.get('description', ""))
|
||||||
lr2.enabled = False #Give name more visual weight
|
lr2.enabled = False #Give name more visual weight
|
||||||
|
|
||||||
right.operator(BPKG_OT_install.bl_idname,
|
if pkg.get('url'):
|
||||||
text="Install").package_url=pkg.get('url', "")
|
right.operator(BPKG_OT_install.bl_idname,
|
||||||
|
text="Install").package_url=pkg.get('url')
|
||||||
|
|
||||||
def expanded():
|
def expanded():
|
||||||
row1 = leftcol.row()
|
row1 = leftcol.row()
|
||||||
|
Reference in New Issue
Block a user