fix(app): footage drop auto-creates the media's track

A fresh sequence has no tracks and a drop rejected with 'display track
does not exist'; wrong-kind drops also rejected. Dropping footage now
creates a matching track first (the Premiere convention), so the
drag-to-timeline path works on empty timelines too.
This commit is contained in:
2026-08-16 19:46:05 +08:00
parent 2958464bd7
commit b2d353fe99
2 changed files with 35 additions and 8 deletions
+3
View File
@@ -424,6 +424,9 @@ impl<E: AppEngine> Render for TimelinePanel<E> {
},
))
.on_drop(cx.listener(|this, drag: &FootageDrag, _window, cx| {
if std::env::var("OAK_DEBUG_DRAG").is_ok() {
eprintln!("[drag] timeline drop: {drag:?}");
}
this.finish_footage_drop(drag, cx);
}))
.child(self.timeline.clone()),