Commit 33a5e893 authored by Piotrek Brzeziński's avatar Piotrek Brzeziński Committed by Alexandru Băluț
Browse files

timeline: Automatically seek to the end of pasted clips

Improves UX by matching behaviour of other video editors.
parent dbc5328d
......@@ -2004,6 +2004,9 @@ class TimelineContainer(Gtk.Grid, Zoomable, Loggable):
if not pasted_group:"The paste is not possible at position: %s", position)
# Need to save this as the .ungroup() below changes the duration.
duration = pasted_group.duration
# We need to recreate the copied group as pasting destroys it.
......@@ -2011,6 +2014,8 @@ class TimelineContainer(Gtk.Grid, Zoomable, Loggable):
self.__copied_group.props.serialize = False
# Seek to the end of the pasted clip(s) for convenience.
self._project.pipeline.simple_seek(position + duration)
def __add_layer_cb(self, unused_action, unused_parameter):
with"add layer",
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