Skip to content

PhotoCraft: An open-source, photo editor written by scratch in pure Rust

Merge upstream/main into feat/4391-contour-library

vangel76bfa5a75b5d84
diff --cc crates/automation/src/workspace.rs
index e272c9eae,f73a70238..e7c09eb36
--- a/crates/automation/src/workspace.rs
+++ b/crates/automation/src/workspace.rs
@@@ -374,7 -368,11 +374,11 @@@ fn command_uses_ambient_path(id: &str,
params.get("data").is_none() && params.get("path").is_some()
}
// With a `path` the file is written there; without one the bytes come back as `data`.
- "actions.save" | "swatches.export" => params.get("path").is_some(),
+ "actions.save" | "swatches.export" | "layer.layerStyle.contours.save" => params.get("path").is_some(),
+ // Shortcut sets: a .kys read or written by path, or a Summarize page written by path.
+ "edit.keyboardShortcuts" => {
+ params.get("path").is_some() || ["importKys", "exportKys", "summarize"].iter().any(|k| params.get(*k).and_then(|v| v.get("path")).is_some())
+ }
"plugin.reload" => true,
_ => false,
}