[Bf-blender-cvs] [f2a11550b9f] master: Fix T66493: Enable Add-on name not showing in favorites
Campbell Barton
noreply at git.blender.org
Sun Jul 7 06:25:50 CEST 2019
Commit: f2a11550b9f1413327214c22004fb34e5389c3a4
Author: Campbell Barton
Date: Sun Jul 7 14:17:33 2019 +1000
Branches: master
https://developer.blender.org/rBf2a11550b9f1413327214c22004fb34e5389c3a4
Fix T66493: Enable Add-on name not showing in favorites
===================================================================
M release/scripts/startup/bl_ui/properties_workspace.py
===================================================================
diff --git a/release/scripts/startup/bl_ui/properties_workspace.py b/release/scripts/startup/bl_ui/properties_workspace.py
index 7b9cbb8aac8..322cdee0922 100644
--- a/release/scripts/startup/bl_ui/properties_workspace.py
+++ b/release/scripts/startup/bl_ui/properties_workspace.py
@@ -81,13 +81,13 @@ class WORKSPACE_PT_addons(WorkSpaceButtonsPanel, Panel):
continue
is_enabled = module_name in owner_ids
row = col.row()
+ row.alignment = 'LEFT'
row.operator(
"wm.owner_disable" if is_enabled else "wm.owner_enable",
icon='CHECKBOX_HLT' if is_enabled else 'CHECKBOX_DEHLT',
- text="",
+ text="%s: %s" % (info["category"], info["name"]),
emboss=False,
).owner_id = module_name
- row.label(text="%s: %s" % (info["category"], info["name"]))
if is_enabled:
owner_ids.remove(module_name)
@@ -97,13 +97,13 @@ class WORKSPACE_PT_addons(WorkSpaceButtonsPanel, Panel):
col = layout.box().column(align=True)
for module_name in sorted(owner_ids):
row = col.row()
+ row.alignment = 'LEFT'
row.operator(
"wm.owner_disable",
icon='CHECKBOX_HLT',
- text="",
+ text=module_name,
emboss=False,
).owner_id = module_name
- row.label(text=module_name)
class WORKSPACE_PT_custom_props(WorkSpaceButtonsPanel, PropertyPanel, Panel):
More information about the Bf-blender-cvs
mailing list