From 3364371ac6d631d7c54e85e2eb6bf8d9d13cc649 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Fri, 11 Nov 2016 09:22:59 +0100 Subject: [PATCH] Use '{nr of shots} Shots' instead of 'Selected Shots' This is a bit shorter, and more concrete. --- blender_cloud/attract/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/blender_cloud/attract/__init__.py b/blender_cloud/attract/__init__.py index 8168593..1c55d3c 100644 --- a/blender_cloud/attract/__init__.py +++ b/blender_cloud/attract/__init__.py @@ -170,7 +170,7 @@ class ToolsPanel(Panel): selshots = list(selected_shots(context)) if strip and strip.type in strip_types and strip.atc_object_id: if len(selshots) > 1: - noun = 'Selected Shots' + noun = '%i Shots' % len(selshots) else: noun = 'This Shot' @@ -211,6 +211,7 @@ class ToolsPanel(Panel): # Group more dangerous operations. dangerous_sub = layout.split(0.6, align=True) dangerous_sub.operator('attract.strip_unlink', + text='Unlink %s' % noun, icon='PANEL_CLOSE') dangerous_sub.operator(AttractShotDelete.bl_idname, text='Delete %s' % noun,