Cleanup: remove unused BUG_ADDON URL preset
This commit is contained in:
committed by
Philipp Oeser
parent
c5c37b5bef
commit
d5bd1e88a8
@@ -269,20 +269,9 @@ def addon_draw_item_expanded(
|
||||
# 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(
|
||||
"wm.url_open", text="Report a Bug", icon='URL',
|
||||
).url = item_tracker_url
|
||||
else:
|
||||
addon_info = (
|
||||
"Name: {:s} {:s}\n"
|
||||
"Author: {:s}\n"
|
||||
).format(item_name, item_version, item_maintainer)
|
||||
props = col_b.split(factor=0.5).operator(
|
||||
"wm.url_open_preset", text="Report a Bug", icon='URL',
|
||||
)
|
||||
props.type = 'BUG_ADDON'
|
||||
props.id = addon_info
|
||||
col_b.split(factor=0.5).operator(
|
||||
"wm.url_open", text="Report a Bug", icon='URL',
|
||||
).url = item_tracker_url
|
||||
|
||||
if USE_SHOW_ADDON_TYPE_AS_TEXT:
|
||||
col_a.label(text="Type")
|
||||
|
||||
@@ -1084,19 +1084,10 @@ class WM_OT_url_open_preset(Operator):
|
||||
items=WM_OT_url_open_preset._wm_url_open_preset_type_items,
|
||||
)
|
||||
|
||||
id: StringProperty(
|
||||
name="Identifier",
|
||||
description="Optional identifier",
|
||||
)
|
||||
|
||||
def _url_from_bug(self, _context):
|
||||
from bl_ui_utils.bug_report_url import url_prefill_from_blender
|
||||
return url_prefill_from_blender()
|
||||
|
||||
def _url_from_bug_addon(self, _context):
|
||||
from bl_ui_utils.bug_report_url import url_prefill_from_blender
|
||||
return url_prefill_from_blender(addon_info=self.id)
|
||||
|
||||
def _url_from_release_notes(self, _context):
|
||||
return "https://www.blender.org/download/releases/{:d}-{:d}/".format(*bpy.app.version[:2])
|
||||
|
||||
@@ -1115,9 +1106,6 @@ class WM_OT_url_open_preset(Operator):
|
||||
(('BUG', iface_("Bug"),
|
||||
tip_("Report a bug with pre-filled version information")),
|
||||
_url_from_bug),
|
||||
(('BUG_ADDON', iface_("Add-on Bug"),
|
||||
tip_("Report a bug in an add-on")),
|
||||
_url_from_bug_addon),
|
||||
(('RELEASE_NOTES', iface_("Release Notes"),
|
||||
tip_("Read about what's new in this version of Blender")),
|
||||
_url_from_release_notes),
|
||||
|
||||
Reference in New Issue
Block a user