Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-07-07 07:17:33 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-07-07 07:17:33 +0300
commitf2a11550b9f1413327214c22004fb34e5389c3a4 (patch)
tree86abd37bc03042012456a58017911c8c0b422fcf /release/scripts/startup/bl_ui/properties_workspace.py
parentb1c3038f1818140c6b34b137bdde07022855f290 (diff)
Fix T66493: Enable Add-on name not showing in favorites
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_workspace.py')
-rw-r--r--release/scripts/startup/bl_ui/properties_workspace.py8
1 files changed, 4 insertions, 4 deletions
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):