Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/space_userpref.py
| Context not available. | |||||
| ).url = info["wiki_url"] | ).url = info["wiki_url"] | ||||
| # Only add "Report a Bug" button if tracker_url is set | # Only add "Report a Bug" button if tracker_url is set | ||||
| # or the add-on is bundled (use official tracker then). | # or the add-on is bundled (use official tracker then). | ||||
| if info.get("tracker_url") or not user_addon: | if info.get("tracker_url"): | ||||
| sub.operator( | sub.operator( | ||||
| "wm.url_open", text="Report a Bug", icon='URL', | "wm.url_open", text="Report a Bug", icon='URL', | ||||
| ).url = info.get( | ).url = info["tracker_url"] | ||||
| "tracker_url", | elif not user_addon: | ||||
| "https://developer.blender.org/maniphest/task/edit/form/2", | sub.operator( | ||||
| ) | "wm.report_bug_addon", text="Report a Bug", icon='URL', | ||||
| ).addon = info["name"] + " " + ".".join(str(x) for x in info["version"]) | |||||
| if user_addon: | if user_addon: | ||||
| sub.operator( | sub.operator( | ||||
| "preferences.addon_remove", text="Remove", icon='CANCEL', | "preferences.addon_remove", text="Remove", icon='CANCEL', | ||||
| Context not available. | |||||