Nicer button layout for unlink & delete

This makes 'delete' harder to hit accidentally.
This commit is contained in:
Sybren A. Stüvel 2016-11-11 09:17:25 +01:00
parent c2a037ca89
commit 2723b07fa2

View File

@ -209,12 +209,12 @@ class ToolsPanel(Panel):
icon='RENDER_STILL')
# Group more dangerous operations.
dangerous_sub = layout.column(align=True)
dangerous_sub = layout.split(0.6, align=True)
dangerous_sub.operator('attract.strip_unlink',
icon='PANEL_CLOSE')
dangerous_sub.operator(AttractShotDelete.bl_idname,
text='Delete %s' % noun,
icon='CANCEL')
dangerous_sub.operator('attract.strip_unlink',
icon='PANEL_CLOSE')
elif context.selected_sequences:
if len(context.selected_sequences) > 1: