Fix #122858: Core extensions report bugs to add-on repository
Core extensions should have their bugs reported as any other issue in Blender. This PR removes their "Rrport a Bug" link. I left the link only for glTF since it has its own tracker. But I wouldn't mind removing it as well. Ref: !125218
This commit is contained in:
committed by
Philipp Oeser
parent
7a16c7532c
commit
c5c37b5bef
@@ -265,9 +265,9 @@ def addon_draw_item_expanded(
|
||||
text=domain_extract_from_url(item_doc_url),
|
||||
icon='HELP' if addon_type in {ADDON_TYPE_LEGACY_CORE, ADDON_TYPE_LEGACY_USER} else 'URL',
|
||||
).url = item_doc_url
|
||||
# Only add "Report a Bug" button if tracker_url is set
|
||||
# or the add-on is bundled (use official tracker then).
|
||||
if item_tracker_url or (addon_type == ADDON_TYPE_LEGACY_CORE):
|
||||
# Only add "Report a Bug" button if tracker_url is set.
|
||||
# None of the core add-ons are expected to have tracker info (glTF is the exception).
|
||||
if item_tracker_url:
|
||||
col_a.label(text="Feedback", text_ctxt=i18n_contexts.editor_preferences)
|
||||
if item_tracker_url:
|
||||
col_b.split(factor=0.5).operator(
|
||||
|
||||
@@ -20,7 +20,6 @@ bl_info = {
|
||||
"category": "Animation",
|
||||
"support": 'OFFICIAL',
|
||||
"doc_url": "{BLENDER_MANUAL_URL}/addons/animation/copy_global_transform.html",
|
||||
"tracker_url": "https://projects.blender.org/blender/blender-addons/issues",
|
||||
}
|
||||
|
||||
import ast
|
||||
|
||||
@@ -2585,22 +2585,12 @@ class USERPREF_PT_addons(AddOnPanel, Panel):
|
||||
sub.operator(
|
||||
"wm.url_open", text="Documentation", icon='HELP',
|
||||
).url = bl_info["doc_url"]
|
||||
# Only add "Report a Bug" button if tracker_url is set
|
||||
# or the add-on is bundled (use official tracker then).
|
||||
# Only add "Report a Bug" button if tracker_url is set.
|
||||
# None of the core add-ons are expected to have tracker info (glTF is the exception).
|
||||
if bl_info.get("tracker_url"):
|
||||
sub.operator(
|
||||
"wm.url_open", text="Report a Bug", icon='URL',
|
||||
).url = bl_info["tracker_url"]
|
||||
elif not user_addon:
|
||||
addon_info = (
|
||||
"Name: {:s} {:s}\n"
|
||||
"Author: {:s}\n"
|
||||
).format(bl_info["name"], str(bl_info["version"]), bl_info["author"])
|
||||
props = sub.operator(
|
||||
"wm.url_open_preset", text="Report a Bug", icon='URL',
|
||||
)
|
||||
props.type = 'BUG_ADDON'
|
||||
props.id = addon_info
|
||||
|
||||
if user_addon:
|
||||
split = colsub.row().split(factor=0.15)
|
||||
|
||||
Reference in New Issue
Block a user