diff options
Diffstat (limited to 'release/scripts/ui/space_userpref.py')
-rw-r--r-- | release/scripts/ui/space_userpref.py | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/release/scripts/ui/space_userpref.py b/release/scripts/ui/space_userpref.py index 1175d518323..3551e31190e 100644 --- a/release/scripts/ui/space_userpref.py +++ b/release/scripts/ui/space_userpref.py @@ -1191,7 +1191,7 @@ class USERPREF_PT_addons(bpy.types.Panel): # If there are Infos or UI is expanded if info["expanded"]: row.operator("wm.addon_expand", icon="TRIA_DOWN").module = module_name - elif info["author"] or info["version"] or info["url"] or info["location"]: + elif info["author"] or info["version"] or info["wiki_url"] or info["location"]: row.operator("wm.addon_expand", icon="TRIA_RIGHT").module = module_name else: # Else, block UI @@ -1220,12 +1220,19 @@ class USERPREF_PT_addons(bpy.types.Panel): split = column.row().split(percentage=0.15) split.label(text='Description:') split.label(text=info["description"]) - if info["url"]: + if info["wiki_url"] or info["tracker_url"]: split = column.row().split(percentage=0.15) split.label(text="Internet:") - split.operator("wm.addon_links", text="Link to the Wiki").link = info["url"] - split.separator() - split.separator() + if info["wiki_url"]: + split.operator("wm.addon_links", text="Link to the Wiki").link = info["wiki_url"] + if info["tracker_url"]: + split.operator("wm.addon_links", text="Report a Bug").link = info["tracker_url"] + + if info["wiki_url"] and info["tracker_url"]: + split.separator() + else: + split.separator() + split.separator() # Append missing scripts # First collect scripts that are used but have no script file. @@ -1249,7 +1256,7 @@ class USERPREF_PT_addons(bpy.types.Panel): from bpy.props import * -def addon_info_get(mod, info_basis={"name": "", "author": "", "version": "", "blender": "", "location": "", "description": "", "url": "", "category": "", "expanded": False}): +def addon_info_get(mod, info_basis={"name": "", "author": "", "version": "", "blender": "", "location": "", "description": "", "wiki_url": "", "tracker_url": "", "category": "", "expanded": False}): addon_info = getattr(mod, "bl_addon_info", {}) # avoid re-initializing |