Skip to content

The truly free, open-source, local-first, cross-platform CapCut replacement. Scriptable through a JSON-RPC API & MCP.

fix: add check closure for sort menu items

Domica5b68f22f8278
diff --git a/engine/crates/concat/src/studio.rs b/engine/crates/concat/src/studio.rs
index 536b1c59..3867e594 100644
--- a/engine/crates/concat/src/studio.rs
+++ b/engine/crates/concat/src/studio.rs
@@ -6799,6 +6799,17 @@ impl Studio {
kind: MenuRow::Separator,
..Default::default()
};
+ let check = |id: &str, label: &str, on: bool| MenuItemData {
+ id: id.into(),
+ label: label.into(),
+ kind: MenuRow::Action,
+ glyph: Glyph::None,
+ shortcut: "".into(),
+ enabled: true,
+ danger: false,
+ checkable: true,
+ checked: on,
+ };
let selected = self.selection.len();
let playhead = f64::from(self.playhead);
let straddled = self.timeline().clips.iter().any(|clip| {