Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/space_topbar.py
| Context not available. | |||||
| bl_label = "Help" | bl_label = "Help" | ||||
| def draw(self, context): | def draw(self, context): | ||||
| # If 'url_prefill_from_blender' becomes slow it could be made into a separate operator | |||||
| # to avoid constructing the bug report just to show this menu. | |||||
| from bl_ui_utils.bug_report_url import url_prefill_from_blender | |||||
| layout = self.layout | layout = self.layout | ||||
| Context not available. | |||||
| layout.separator() | layout.separator() | ||||
| layout.operator( | layout.operator("wm.report_bug", text="Report a Bug", icon='URL') | ||||
| "wm.url_open", text="Report a Bug", icon='URL', | |||||
| ).url = url_prefill_from_blender() | |||||
| layout.separator() | layout.separator() | ||||
| Context not available. | |||||