Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Dinges <blender@dingto.org>2010-05-31 00:48:09 +0400
committerThomas Dinges <blender@dingto.org>2010-05-31 00:48:09 +0400
commit03220bfe71ba1605c7e1428132f7e29ab2ff01bb (patch)
treee2f6a085c4fb65ff8fb704a2344ce2d1cf6089bd /release/scripts/ui/space_userpref.py
parentb8f3a1f4fe3818022509500cbba2d4f2d92ad3c8 (diff)
2.5 Addons:
Request from mindrones :) * Next to the Wiki URL, it's now possible to have a link to the tracker, for bug reports. "bl_addon_info" dictionary: * Renamed 'url' to 'wiki_url' * Added 'tracker_url'
Diffstat (limited to 'release/scripts/ui/space_userpref.py')
-rw-r--r--release/scripts/ui/space_userpref.py19
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