Use '{nr of shots} Shots' instead of 'Selected Shots'
This is a bit shorter, and more concrete.
This commit is contained in:
parent
2723b07fa2
commit
3364371ac6
@ -170,7 +170,7 @@ class ToolsPanel(Panel):
|
|||||||
selshots = list(selected_shots(context))
|
selshots = list(selected_shots(context))
|
||||||
if strip and strip.type in strip_types and strip.atc_object_id:
|
if strip and strip.type in strip_types and strip.atc_object_id:
|
||||||
if len(selshots) > 1:
|
if len(selshots) > 1:
|
||||||
noun = 'Selected Shots'
|
noun = '%i Shots' % len(selshots)
|
||||||
else:
|
else:
|
||||||
noun = 'This Shot'
|
noun = 'This Shot'
|
||||||
|
|
||||||
@ -211,6 +211,7 @@ class ToolsPanel(Panel):
|
|||||||
# Group more dangerous operations.
|
# Group more dangerous operations.
|
||||||
dangerous_sub = layout.split(0.6, align=True)
|
dangerous_sub = layout.split(0.6, align=True)
|
||||||
dangerous_sub.operator('attract.strip_unlink',
|
dangerous_sub.operator('attract.strip_unlink',
|
||||||
|
text='Unlink %s' % noun,
|
||||||
icon='PANEL_CLOSE')
|
icon='PANEL_CLOSE')
|
||||||
dangerous_sub.operator(AttractShotDelete.bl_idname,
|
dangerous_sub.operator(AttractShotDelete.bl_idname,
|
||||||
text='Delete %s' % noun,
|
text='Delete %s' % noun,
|
||||||
|
Reference in New Issue
Block a user