Skip to content

Draft: add clip directly on timeline

We added some of the add clip actions to a new menu on the timeline context menu. We also added a call to a method on the callback that is executed after the creation of the clip. This method is responsible for inserting the created clip to the timeline on the position the user opened the context menu, in case the clip was selected from the timeline. This is controlled by an attribute called m_shouldAddClip, which we set to true when a click happens on the timeline, and to false when a click happens on the project bin menu or the menubar. If a click happens on an audio track, the timeline add clip menu will be disabled.

We'd like to know if this is a correct way to implement this feature.

Fixes #810

Co-authored-by: lucasrf lucasro229@gmail.com

Edited by Kleidson Alves

Merge request reports