Commit b9a12692 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

ClipContextMenu: Add clip linking

parent ffc0a82a
......@@ -35,6 +35,16 @@ Menu {
onTriggered: {
if ( clip.linked === true )
workflow.unlinkClips( uuid, clip.linkedClip );
else {
var selectedClip;
for ( var i = 0; i < selectedClips.length; ++i ) {
if ( selectedClips[i].uuid !== uuid ) {
selectedClip = selectedClips[i].uuid;
break;
}
}
workflow.linkClips( clip.uuid, selectedClip );
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment