Format plugin context menu item construction

This commit is contained in:
dotCooCoo committed 2026-11-26 11:22:02 -08:00
1 parent 46a2bc6351
commit 0639f6f2f7
1 file changed
+2 -1
+2 -1
View File
@@ -249,7 +249,8 @@ pub fn canvas_submenu(doc: &vectorcraft_doc::Document, ids: &[u64]) -> Option<No
let groups: Vec<Node> = context_commands(ContextMenu::Canvas, doc, ids)
.into_iter()
.map(|(name, commands)| {
let items = commands.into_iter().map(|command| cp(command.label, command.command, json!({ "ids": ids })).enabled(command.enabled)).collect();
let items =
commands.into_iter().map(|command| cp(command.label, command.command, json!({ "ids": ids })).enabled(command.enabled)).collect();
sub(name, items)
})
.collect();