fix(app): context-menu actions, clip clipboard, A/V drop, add-track, default tracks, undo divergence

- Right-clicking an unselected clip selects it first (C++ parity) —
  this is what made Cut/Delete appear to do nothing.
- Cut/Copy/Paste clipboard: clipboard_copy/cut/paste on the engine,
  clipboard clips keep footage/range/speed/track kind and stay linked
  in the pasted group; paste lands at the playhead as one undo entry.
- Dropping a video-with-audio footage places the video clip plus a
  linked audio clip at the same range in ONE 'Add Clip' undo entry.
- Add Video/Audio Track buttons in the timeline toolbar and the track
  header context menu; new sequences start with 2 video + 2 audio
  tracks (not an undoable edit).
- oaknode Graph::add_entry now reclaims the slot from the free list —
  before, a detached-then-reattached node left its slot in the free
  list, so node_count undercounted and the next add_node silently
  clobbered the restored node. This was the user's 'undo, redo, undo,
  redo and the result changed' bug; regression covered by cycle tests
  (move/trim/delete/split/add-track/linked-placement all converge).
This commit is contained in:
2026-08-19 17:42:21 +08:00
parent dffa94127a
commit 29696479b5
8 changed files with 563 additions and 6 deletions
+7 -1
View File
@@ -140,7 +140,7 @@ image = "0.25"
# ---------------------------------------------------------------------------
[package.metadata.packager]
name = "oak"
productName = "Oak"
productName = "Oak Video Editor"
identifier = "org.oakvideoeditor.Oak"
description = "Oak Video Editor"
longDescription = "Oak Video Editor: a free, open-source non-linear video editor written in Rust."
@@ -154,3 +154,9 @@ binaries = [
{ path = "oak-cli", main = false },
{ path = "oak-worker", main = false },
]
[profile.dev.package."*"]
opt-level = 3
[profile.dev]
opt-level = 1